Color Palette Generator
The harmonies, and when each earns its place
All the schemes here are geometry on the colour wheel, computed in HSL (hue, saturation, lightness):
Complementary — the colour 180° opposite. Maximum contrast and energy; the pair every sports team and warning sign exploits. Use it for accents against a dominant colour, in small doses: equal areas of two complements vibrate. Analogous — the neighbours ±30°. Serene, unified, found everywhere in nature; the safe scheme for interfaces and brands that must feel calm, with contrast supplied by lightness rather than hue. Triadic — three colours 120° apart. Balanced yet vivid, and forgiving: even beginners’ triadic palettes tend to cohere, because the geometry guarantees even spacing. Split-complementary — the two colours flanking the complement (±150°). Nearly the punch of a complement with less tension; the professional’s compromise. Monochromatic scale — one hue, many lightnesses: the shades (toward black) and tints (toward white) that turn a single brand colour into a usable system of backgrounds, borders, text and hover states.
Dosing the palette: the 60-30-10 rule
Knowing which colours belong together is half the craft; the other half is proportion. Interior designers’ oldest heuristic transfers to screens unchanged: 60% of a layout should be the dominant, usually quietest colour (backgrounds and large surfaces), 30% the secondary colour (cards, sidebars, secondary elements) and 10% the accent (buttons, links, highlights, the one chart line that matters). Applied to this page’s output: the tint end of the monochromatic scale usually supplies the 60, mid shades and the secondary harmony colour share the 30, and the saturated base or its complement takes the 10 — which is why a complement that would be unbearable as a background is perfect as a button. When a design feels “loud”, the diagnosis is almost never the hues; it is the accent promoted to 40%. When it feels bland, the accent has shrunk below visibility or the 60 has drifted so light that nothing anchors the page. Adjust the doses before you touch the colours themselves — most palette problems are proportion problems wearing a colour problem’s clothes.
From palette to practice
A working interface palette is mostly the monochromatic scale: your base colour for primary actions, a darker shade for hover and text-on-light, lighter tints for backgrounds and selected states, with one harmony colour reserved for the few things that must shout (errors and warnings usually borrow the complement family, which is why so many error reds sit opposite brand blues and greens). Two disciplines separate palettes that work from palettes that merely look nice on a swatch page. First, contrast: text needs a contrast ratio of at least 4.5:1 against its background (WCAG AA) — check your chosen pairs, because hue harmony says nothing about legibility; our Color Converter shows the same colours in every model while you test. Second, roles before colours: decide what each slot (background, surface, text, accent, success, warning, danger) needs, then assign palette colours to slots — never the other way round. Finally, view the palette in greyscale: if the design still reads, your lightness structure is sound and the hues are decoration; if it collapses, no harmony will save it.
Frequently asked questions
How do I find the complementary color of a hex code?
Convert the colour to HSL, add 180° to the hue, convert back. For red (#FF0000, hue 0°) the complement is hue 180° — cyan, #00FFFF. For the blue default on this page (#2563EB, hue about 221°) the complement lands near hue 41°, a warm amber — the classic blue-and-orange pairing. The generator shows the complement swatch for any base colour you enter, alongside the other harmonies, so you never need the arithmetic by hand.
What is the difference between a shade, a tint and a tone?
A shade is the base colour mixed toward black (lower lightness), a tint is mixed toward white (higher lightness), and a tone is mixed toward grey (lower saturation). The scale on this page walks lightness from near-black to near-white at constant hue and saturation, giving shades in one direction and tints in the other. Design systems live on these scales: a “blue 700” for text, “blue 600” for buttons and “blue 50” for backgrounds are one hue at three lightnesses.
How many colors should a palette have?
Fewer than you think. A typical working set: one primary hue with its shade/tint scale, one accent (often from a harmony), plus neutrals (greys with a whisper of the primary hue in them) and three functional colours for success, warning and error. That is a dozen swatches doing every job. Palettes fail by sprawl — a second primary “for that one page”, a third accent — far more often than by shortage. Generate generously here, then edit ruthlessly before anything reaches a stylesheet.
Do harmonious colors automatically have good contrast?
No — harmony is about hue relationships; contrast is about lightness difference, and the two are independent. Yellow and cyan are a perfectly respectable pairing by hue and nearly illegible as text on each other because their lightnesses are close. WCAG asks for 4.5:1 contrast for normal text (3:1 for large text). Check every text/background pair you actually plan to use, and adjust lightness — not hue — until it passes: the harmony survives, the legibility arrives.
What color model does the generator use, and why HSL?
HSL — hue as an angle on the wheel, saturation, lightness — because harmonies are defined as hue rotations, which are single additions in HSL and awkward matrix work in RGB. The swatches are converted back to hex for display and copying, since hex is what CSS and design tools eat. HSL’s known quirk is that equal lightness steps do not look equally spaced to the eye (yellows look lighter than blues at the same L) — one more reason the final judge of a palette is your eye on a real layout, not the wheel alone.
Related tools
Behaviour verified in Node on 24 November 2026. Everything runs in your browser — nothing you type is sent anywhere.