Color Palette Generator
Generate complementary, analogous, triadic, monochromatic and neutral colour palettes, then export CSS variables, JSON tokens or a Tailwind config.
Runs in your browserExports CSS, JSON, Tailwind, PNG
About this tool
- 1Pick a base colour or press Shuffle.
- 2Choose a harmony: complementary, analogous, triadic, monochromatic or neutral.
- 3Lock swatches you like and regenerate the rest.
- 4Copy CSS variables, JSON tokens or a Tailwind config.
How it works
Colours are converted to OKLCH, a perceptually uniform space. Harmonies rotate the hue angle (180° for complementary, ±30° for analogous, 120° steps for triadic) while lightness ramps are spaced evenly in perceived lightness, so every step looks equally far apart. Each swatch shows its WCAG contrast ratio against white and black.
Use cases
- Starting a brand or product colour system
- Generating an accessible 50–950 shade scale for Tailwind
- Exploring alternatives to an existing brand colour
Questions
Why OKLCH instead of HSL?
HSL lightness is not perceptual: a yellow and a blue at 50% lightness look very different. OKLCH keeps perceived lightness consistent, so generated scales feel even.
Can I use the palette commercially?
Yes. Everything you generate is yours to use in personal and commercial work. See the Licensing page.
What does the Tailwind export contain?
A theme.extend.colors object with a 50–950 scale for each swatch, ready to paste into tailwind.config or a v4 @theme block.
Related tools
- Image Color ExtractorColor Studio
- Gradient GeneratorColor Studio
- Generative SVG PatternsPattern Lab
- SVG Blob GeneratorSVG Studio
- Halftone GeneratorImage Studio
- All tools in Color Studio
How the algorithms workHow your files are handledUsing what you export