What a colour palette is, and why one colour is never enough
Almost every design starts with one colour someone loves — a brand colour, a colour from a logo or a photograph. The hard part is everything around it: the button colour, the background tint, the accent. Harmony rules solve that by construction: each partner sits a fixed distance from your base on the wheel, or a fixed step away in lightness, so the set is related by maths, not guesswork.
The six harmonies, and the exact maths behind them
The generator works in HSL — hue (position on the wheel, 0–360°), saturation and lightness. Your base colour is converted to HSL, the harmony applied, and each result converted back to HEX and RGB:
| Harmony | How the five colours are derived | Character |
|---|---|---|
| Complementary | Base, the hue 180° opposite, lighter and darker base, lighter complement | Bold, high contrast |
| Analogous | Hues 30° and 15° either side of the base, plus the base itself | Calm, cohesive |
| Triadic | Base plus the hues at +120° and +240°, with lighter and darker base | Vibrant, balanced |
| Split-Complementary | Base plus the hues at +150° and +210° — the pair flanking the complement — with lighter and darker base | Strong but softer than complementary |
| Monochromatic | One hue and saturation at five lightness levels, 12 points apart, centred on your colour | Subtle, elegant |
| Shades | One hue and saturation, stepping down 12 lightness points at a time | Deep, moody |
The lighter and darker variants in the first three schemes sit 18 lightness points above and below your base — and layouts mostly consume tones — pale backgrounds, deep text colours, mid-tone fills — and those come from lightness steps, not new hues.
Turning five swatches into a design that works
The usual failure is using all five colours equally. Try the 60-30-10 rule: about 60% of the design in your most neutral swatch (often the lightest), 30% in a supporting colour, 10% in the strongest accent — usually the complement or a triadic partner, because it contrasts most. Analogous and monochromatic palettes suit calm, content-heavy pages; complementary and triadic ones suit landing pages and calls to action. If a palette feels almost right, keep the harmony and change only the base colour — the relationships stay intact while the mood shifts.
From palette to code: using the CSS export
If the palette is headed for a website, Export CSS beats copying HEX codes one at a time. It writes the five colours as CSS variables — --color-1 through --color-5 in a :root block — to copy into your stylesheet or download as a .css file. Reference them with var(--color-2): change one variable, and every heading, button and border using it updates together — one source of truth for the whole site.
What this tool does not do
Honesty matters here: harmonious does not automatically mean readable. This generator does not calculate contrast ratios, certify WCAG or ADA compliance, or simulate colour-vision deficiency. The black-or-white label on each swatch is chosen by luminance purely so the label stays legible — a display aid, not an accessibility verdict. Before shipping, test your actual foreground-and-background pairs in a contrast checker, especially body text. Treat this tool as the sketch: principled starting points you then refine and verify.
Your colours stay in your browser
Many palette services save every scheme to a public gallery. This one cannot: the conversions run in JavaScript on your device, nothing is uploaded, and no palette is stored anywhere — safe for unreleased brand work.