Free tool
Runs in your browserPalette Generator
Press the spacebar for a new palette that works as a UI: background, surface, text, primary, and accent, with readable text checked in light and dark.
Or browse the palette library.
What it does
Press the spacebar for a new palette that works as an interface, not only five swatches: background, surface, text, primary, and accent, each in light and dark mode. Ten text and button pairs are checked on every palette.
How to use it
- Press the spacebar until you like a palette. Lock the colors you want to keep.
- Edit any color by hex or with the OKLCH sliders, and change the order of the colors.
- Copy the palette as CSS variables or Tailwind v4, or copy a link that opens the same palette.
How it keeps text readable
Each palette starts from a random seed and harmony offsets in OKLCH. The generator aims a little above the WCAG levels (4.5:1 for text, 3:1 for the primary color on the background), so a small edit doesn't push a pair under the line. Locked colors are never changed; if a lock makes a pair fail, the failure is shown with a one-click fix. Ctrl+Z (Cmd+Z on a Mac) undoes up to 100 steps, and the last 20 palettes stay in this tab's history.
Related: palette library · Palette Visualizer
Private by design
Your code never leaves your browser. Colors you type here stay on your device.
Results use the same color engine as the builder, judged on the final 8-bit colors, with WCAG 2.2 deciding pass or fail.