The three properties of a colour
Most colour models describe a colour with three properties. Using the terms from HSL, which the ColourPickr tools use:
- Hue is the position on the colour wheel: red, orange, yellow, green and so on. In HSL it is an angle from 0° to 360°, with red at 0°, green at 120° and blue at 240°.
- Saturation is how pure or vivid the colour is. At 0% any hue becomes a grey.
- Lightness runs from black (0%) through the full colour (50%) to white (100%).
Painters use related words. A tint is a colour mixed with white, a shade is mixed with black, and a tone is mixed with grey. On screen you make tints and shades by raising or lowering lightness. Tones come from lowering saturation.
Which colour wheel?
There is more than one colour wheel, and they disagree about which colours are opposite each other.
- The RYB wheel is the one many of us met at school and in art classes. Its primaries are red, yellow and blue, and its complementary pairs are red and green, blue and orange, and yellow and purple. It grew out of centuries of mixing paint and is still a useful tool for painters.
- The RGB wheel is built from the primaries of light: red, green and blue, with cyan, magenta and yellow between them. Here the complements are red and cyan, green and magenta, and blue and yellow. This is the wheel that HSL, CSS and almost all digital design tools use.
Neither is "wrong"; they model different things. But if you follow a rule written for the RYB wheel, such as "the complement of blue is orange", in a digital tool, you will get a different answer from the tool's complementary function. The harmony palettes in our colour picker use the RGB/HSL wheel.
Harmony schemes
Harmony schemes pick hues by their angle on the wheel. Here is each one applied to ColourPickr's default colour, #6366f1 (hue 239°, saturation 84%, lightness 67%), keeping saturation and lightness fixed:
| Scheme | Rule | Result for #6366f1 |
|---|---|---|
| Complementary | Add 180° | #6366f1 #f1ee63 |
| Analogous | 30° either side | #63adf1 #6366f1 #a763f1 |
| Triadic | Three hues 120° apart | #6366f1 #f16366 #66f163 |
| Split-complementary | 150° and 210° away | #6366f1 #f1a763 #adf163 |
| Monochrome | Same hue, different lightness | #060846 #0d0f8c #1317d3 #4447ee #8a8cf4 #d0d1fb |
What each scheme tends to be good for:
- Complementary pairs give the strongest contrast of hue. They are good for making one element stand out, such as a call-to-action button against a page in the main brand colour. Used in equal amounts at full saturation, they can feel harsh.
- Analogous schemes feel calm and unified because the hues are related. They usually need a contrasting neutral or accent so that nothing important gets lost.
- Triadic schemes are lively and balanced, and work best when one hue dominates and the other two are used sparingly.
- Split-complementary keeps most of the contrast of a complementary pair but is easier to balance.
- Monochrome scales are the backbone of most interface palettes: light tints for backgrounds, mid tones for borders, dark shades for text.
Why the maths is only a starting point
Look again at the triadic and complementary results above. Every colour has the same HSL saturation and lightness, but they do not look equally light. The yellow complement #f1ee63 has a relative luminance of 0.81, more than four times that of the original blue (0.19). The green in the triadic set #66f163 is similar (0.67).
The reason is that human eyes are far more sensitive to green and yellow light than to blue. HSL ignores this: its "lightness" is a simple average of the largest and smallest channel, not a measure of how bright a colour looks. The practical consequences are easy to see with the same palette:
- White text on the blue scores 4.46:1.
- White text on the yellow scores just 1.22:1, which is unreadable.
- Black text on the yellow scores 17.15:1.
So a harmony scheme tells you which hues relate to each other. It does not tell you that they will work at the same strength. Expect to adjust lightness and saturation by eye, and check text contrast with the contrast checker.
Context changes colour
A colour never appears on its own. The same grey looks lighter on a black background than on a white one, and a neutral grey next to a strong colour can seem tinged with that colour's complement. The chemist Michel Eugène Chevreul described this "simultaneous contrast" in the nineteenth century while working on dyes. The artist and teacher Josef Albers built a whole course of exercises around it in his book Interaction of Color (1963).
For designers, the lesson is to judge colours in place. Test a palette in a real layout, with real text, buttons and images, rather than as a row of swatches. A colour that looks perfect in a swatch can feel very different across a full-width banner.
Building a usable palette, step by step
- Choose one primary colour. Usually this is your brand colour. Paste it into the colour picker to get its codes and see its contrast with white and black text.
- Make a lightness scale for it. Create a range from very light to very dark, for example by stepping HSL lightness. Many design systems use around nine or ten steps. You will use the light end for backgrounds and highlights, and the dark end for text and hover states.
- Add neutrals. Greys carry most of an interface: text, borders, backgrounds and dividers. Slightly tinting them towards your primary hue often makes a palette feel more cohesive than pure grey.
- Pick an accent from a harmony scheme. A complementary or split-complementary hue makes a good accent for the few things that must stand out. Adjust its lightness so it has a similar visual weight to the primary colour, or a deliberately stronger one.
- Assign meanings and keep to them. Decide on colours for success, warning, error and information messages. Never let colour be the only signal: pair it with an icon or text, as WCAG success criterion 1.4.1 requires.
- Test contrast for every text pairing you will use. Normal text needs at least 4.5:1 against its background; see our WCAG contrast guide.
The 60-30-10 guideline
A widely used rule of thumb, borrowed from interior design, is to give about 60% of a space to a dominant colour, 30% to a secondary colour and 10% to an accent. On websites the dominant colour is often a neutral background rather than the brand colour. Treat it as a reminder that accents work because they are rare, not as a formula: if everything is highlighted, nothing is.
Colour vision deficiency
Red-green colour vision deficiency is common: about 1 in 12 men and 1 in 200 women of Northern European ancestry are affected. That is the figure given by the US National Library of Medicine and by the UK charity Colour Blind Awareness. Red and green used as the only difference between two states, such as "error" and "success", or two lines on a chart, will be hard for these users to tell apart. Differences in lightness, labels, patterns and icons all help. Many design tools and browser developer tools can simulate common types of colour vision deficiency, which is a quick way to check a palette.
To see how specific colours carry associations, and how far those associations can be trusted, read our colour psychology guide.
Frequently asked questions
Is the complement of blue orange or yellow?
On the traditional RYB painter's wheel it is orange; on the RGB wheel used by screens and HSL it is yellow. Digital tools, including ours, use the RGB wheel.
How many colours should a website palette have?
There is no fixed number. A common pattern is one primary colour with a lightness scale, a set of neutrals, one accent and a few status colours.
Do harmony schemes guarantee a good palette?
No. They suggest related hues. You still need to balance lightness and saturation and check contrast.