Colour palette generator
Generate a colour palette, lock the colours you like and regenerate the rest. Each swatch shows its contrast with text, and you can export the palette as CSS variables.
runs in your browser · nothing uploaded
How to use it
- Choose a style. Analogous, complementary, triadic and monochrome start from a base colour you pick.
- Press Generate until something looks right. Lock any swatch to keep it.
- Check each swatch's contrast note before using it behind text.
- Export as a hex list, CSS variables or JSON.
The styles
Analogous colours sit next to each other on the colour wheel and feel calm. Complementary pairs sit opposite and give strong contrast. Triadic uses three hues 120° apart. Monochrome keeps one hue and steps the lightness from dark to light, which is a quick way to get a set of shades for a UI. Pastel picks light, soft colours with any hue.
Contrast matters more than hue
A palette that looks good as swatches can still fail as an interface if text on it is hard to read. WCAG asks for a contrast ratio of 4.5:1 for body text and 3:1 for large text. Each swatch here shows its ratio with black or white text, and the contrast checker tests any pair.
Questions
Is anything sent to a server?
No. Everything happens in your browser, and nothing you type is uploaded or stored by us.
Can I use these colours in Tailwind?
Yes. Export CSS variables and reference them in your Tailwind theme, or copy the hex values into its colour settings.