Palette Generator
Build a colour palette from a base colour using harmony rules, or randomly with locked swatches, then export it as CSS, Tailwind, JSON or a PNG image.
The tool
How to use
- Choose “From a colour”, enter or pick your colour, and pick a harmony.
- Or choose “Random”, press Generate (or the space bar) and lock any swatch you want to keep.
- Copy any colour with one tap and see its 50–950 shade scale.
- Export the palette as CSS variables, a Tailwind config, JSON or a PNG image.
Privacy & how it works
Processes your data in the browser and stores nothing.
- Engine: lightweight in-page code, no external libraries.
- Works offline after you open it once.
Frequently asked questions
How are harmony colours calculated?
We rotate the hue on the HSL wheel: complementary +180°, triadic +120° and +240°, analogous ±30°, split-complementary +150° and +210°. Saturation and lightness stay the same as your colour.
What is the 50–950 scale?
Shades of the same colour from lightest to darkest in the Tailwind style. Hue is kept and lightness is spread in OKLCH so the steps look even. It is an approximation, not Tailwind’s official colours.
Are random colours always nice?
They are drawn from a moderate lightness and chroma range so they are not too dull or too loud, but they really are random. Lock the ones you like and regenerate the rest.