Color Palette Generator
Build a harmonious colour palette from one base colour using complementary, analogous, triadic, monochrome or shade/tint schemes, then export it.
Tool guide
What this tool does
Color Palette Generator turns a single base colour into a full set of swatches using classic colour-wheel relationships, computed in OKLCH so the hues stay true and the lightness steps feel even. Switch between complementary, analogous, triadic, split-complementary, monochrome and shade/tint schemes to see different moods from the same starting colour, then copy the result as CSS custom properties, a Tailwind colours object or a plain hex array.
Picking a handful of colours that actually work together is harder than it looks: two colours that each look fine alone can clash once placed side by side. Colour theory solves this with a small set of reliable relationships read straight off the colour wheel, and this generator applies six of the most useful ones to whatever base colour you already have.
Every scheme is computed in OKLCH rather than plain HSL, so rotating the hue keeps the same perceived lightness and intensity instead of producing one washed-out swatch and one overly bright one. The shade and tint scheme instead blends your colour toward white or black in OKLab, which keeps the result looking like a natural variant of the original rather than a different colour entirely.
How to use Color Palette Generator
- Type a colour into Base colour, paste any CSS colour syntax, or use the native picker.
- Choose a scheme: Complementary, Analogous, Triadic, Split-complementary, Monochrome or Shades & tints.
- Press Random base colour if you want inspiration from a fresh starting point.
- Review the generated swatches; each one shows its hex code and can be copied individually.
- Pick an export Format — CSS variables, a Tailwind colours object or a JSON array.
- Copy or download the generated snippet and paste it straight into your project.
Tips for better results
- Analogous schemes read as calm and cohesive, which suits backgrounds and large surfaces more than call-to-action buttons.
- Complementary pairs give the strongest contrast of hue, so reserve the second colour for small accents rather than large areas.
- Monochrome palettes are the safest choice when you already have a brand colour and only need supporting tones.
- Run the resulting swatches through a contrast checker before using any of them as text on a background colour.
Common use cases
- Sketching a colour direction for a new website or app before committing to a full design system.
- Finding an accent colour that pairs well with an existing brand colour.
- Generating a quick Tailwind colours object for a prototype without hand-picking every shade.
- Exploring how the same base colour feels under different classic colour-wheel relationships.
Common mistakes to avoid
- Using every swatch from a Triadic or Complementary scheme at equal weight; one colour should usually dominate and the rest should be accents.
- Assuming a generated palette is automatically accessible; check contrast separately before pairing text and background colours.
- Picking the base colour from a glossy rendering or photo rather than its true flat value, which skews every derived swatch.
Frequently asked questions
Which scheme should I start with?
Analogous is a safe default for most interfaces because every colour sits close together on the wheel. Reach for Complementary or Triadic when you specifically need a bold accent that stands out from the rest of the palette.
Why does rotating the hue sometimes change how vivid a colour looks?
Hues are rotated in OKLCH while lightness and chroma are kept fixed, so in theory the intensity should match. Some hues simply have a smaller range of displayable chroma in sRGB, so very saturated inputs can look slightly less vivid once rotated.
What is the difference between Monochrome and Shades & tints?
Monochrome changes only the OKLCH lightness of your exact hue and chroma, which can shift the colour's character at the extremes. Shades & tints instead blends the colour toward white or black in OKLab, which tends to look more like familiar paint tints and shades.
Can I use the Tailwind export directly in tailwind.config.js?
Yes. Paste the generated colors object into theme.extend.colors and reference the keys as classes such as bg-base or bg-complement after renaming them to suit your project.
Related articles
Feedback & suggestions
Help us improve Color Palette Generator. We read every message.