Color relationships

Color harmonies for websites: choose relationships, then assign roles

A harmony suggests which hues might belong together. It does not tell you which color should become a link, a page background or a readable label.

Reviewed 11 October 2026 · 3 min read

Start with the relationship you need

For a quiet editorial page, a small range of neighboring hues may be enough. For a primary action that needs emphasis, an opposing accent can give you a clearer contrast in hue. A dashboard with several kinds of information may need more colors, but that does not mean every color should have equal area or saturation.

Use the color explorer to try the relationships below with your exact hex. It shows HSL hue angles, RGB values and an exploratory OKLCH tonal scale. Keep the original hex when handing off the decision; rounded HSL or OKLCH notation may not reproduce every 8-bit channel exactly.

Relationships in our HSL color wheel
HarmonyRuleA useful starting taskWatch for
AnalogousStarting hue and ±30°Related sections in a calm editorial designSimilar hues can merge without differences in lightness or shape.
ComplementaryStarting hue and 180°One primary direction with a contrasting highlightEqual large areas of vivid opposing hues can compete.
Split complementaryStarting hue, 150° and 210°A dominant hue with two secondary optionsThree colors still need a hierarchy.
Triadic0°, 120° and 240°An illustration-led or playful directionThree distinct hues do not automatically make readable text pairs.
TetradicFour hues at 90° intervalsExploring several accents before choosing a subsetToo many primary-looking actions can obscure the next step.
MonochromaticOne hue and saturation, varied lightnessA restrained interface with a consistent color identityAdjacent shades may not distinguish a control or state.

Worked example: a blue action and a yellow-green accent

Cobalt & Citrus pairs blue #3448C5 with yellow-green #D5EC59. The authored combination is not a mathematically exact hue-rotation preset; its useful distinction is the role assignment. Blue carries the action. Yellow-green provides a smaller supporting highlight.

Against its page #F5F6F0, the blue has 6.71:1 contrast; the yellow-green has 1.21:1. The second color needs a different role or adjustment before it becomes small text. Hue separation cannot replace that calculation. Inspect the accent pair and try a readable alternative.

Why the wheel and the generator can differ

The explorer uses HSL rotations so the rule is explicit and easy to inspect. HSL hue steps are not equal perceptual distances, and HSL lightness is not WCAG relative luminance. The generator explores OKLCH, then reduces chroma where needed to fit sRGB. The two tools answer different questions; a 180° rotation in one model does not promise the same hex as a 180° rotation in another.

Turn the result into a website

  1. Choose a harmony and open the complete set in the generator.
  2. Keep the useful colors locked. Add or adjust a sufficiently light page and dark reading color if the harmony is missing them.
  3. Assign page, surface, text, action and accent roles. Inspect the website preview and the measured pairs.
  4. Open the studio to build the other theme. Review hover, focus and status messages separately.
  5. Export the named tokens and retain the editable project, not just a screenshot.

For status or data categories, add explicit labels, symbols or patterns. Complementary hues can still be difficult for some visitors to distinguish. Color-vision inspection helps reveal questions; it is not a universal distinguishability test.

Method and sources

The angle presets above are this tool’s disclosed implementation of common design relationships, not an accessibility standard or a universal formula for beauty. See MDN’s HSL notation reference, Björn Ottosson’s Oklab description, and W3C’s use-of-color guidance. Cultural and personal color associations vary; test the actual design with its intended audience.

Our examples use original palette values and the WCAG 2.2 calculation. Full methodology and primary sources.

← All field notes