Color schemes from the color wheel, worked out with hue angles
Classic color harmonies are positions on a circle. Once a color is written in HSL, each scheme is just its hue angle plus or minus a fixed number of degrees, with saturation and lightness left alone.
The wheel as a number line that wraps
In HSL, hue is an angle from 0° to 360°. Red sits at 0°, yellow near 60°, green at 120°, cyan at 180°, blue at 240° and magenta at 300°. Because it is a circle, 360° is red again. Any time a sum goes past 360, subtract 360. If it drops below 0, add 360. This is the mod 360 step.
Throughout this page the base color is #2e86c1, a mid blue. Converted to HSL it is about hsl(204, 61.5%, 46.9%). Every scheme below keeps 61.5% saturation and 46.9% lightness and changes only the hue. The HEX values are computed from those numbers and rounded to whole channel values.
The five standard schemes
| Scheme | Offsets | Hues from 204° | HEX |
|---|---|---|---|
| Complementary | +180 | 24° | #c1692e |
| Analogous | −30, +30 | 174°, 234° | #2ec1b2, #2e3dc1 |
| Triadic | +120, +240 | 324°, 84° | #c12e86, #86c12e |
| Split-complementary | +150, +210 | 354°, 54° | #c12e3d, #c1b22e |
| Tetradic (square) | +90, +180, +270 | 294°, 24°, 114° | #b22ec1, #c1692e, #3dc12e |
Wrap-around in action. For the triad, 204 + 240 = 444. Subtract 360 to get 84°, a yellow-green. For the split-complement, 204 + 210 = 414, and 414 − 360 = 54°, a mustard yellow.
Notice a pattern in the HEX codes: the complement #c1692e uses the same three numbers as the base (2e, 86, c1 become c1, 69, 2e) only rearranged and slightly shifted. Turning the hue while keeping saturation and lightness fixed keeps the largest and smallest channel values the same and only moves the middle one.
What each scheme is good for
Complementary
Two hues opposite each other give the strongest hue contrast. Use one as the main color and the other in small amounts, such as a single call-to-action button. Two complements at equal size and full strength tend to vibrate along the edge where they meet.
Analogous
Neighbours within about 30° to 60° of each other feel calm and related. They suit backgrounds, illustrations and data shown as a smooth range. Add a neutral for text, because analogous colors rarely give enough contrast against each other.
Triadic
Three hues spaced 120° apart are balanced and lively. They are hard to use at equal strength. A common approach is to keep one hue saturated and mute the other two by lowering saturation.
Split-complementary
Instead of the exact opposite, take the two hues 30° on either side of it. You keep strong contrast with less tension than a pure complement.
Tetradic
Four hues on a square give the widest range and the most risk. Pick one to lead and let the others play small roles.
How to build a scheme by hand
- Convert your starting color to HSL. The color converter shows the maths.
- Write down its hue, for example 204.
- Add the offsets for the scheme you want, then apply mod 360.
- Keep saturation and lightness as they are, and convert each new HSL value back to HEX.
- Adjust lightness on each result so that the colors you will put text on pass a contrast check.
Common mistakes
- Treating equal HSL lightness as equal brightness. The yellow-green #86c12e looks much brighter than the blue base, even though both have 46.9% lightness. Expect to darken yellows and lighten blues by eye.
- Using the painter’s wheel and the screen wheel together. On the traditional red-yellow-blue wheel, the complement of blue is orange. On the HSL wheel it is also orange-ish here, but for other hues the two wheels disagree. State which wheel you mean.
- Stopping at the hues. A scheme picks hues. A usable palette also needs tints, shades and neutrals.
Questions people ask
Is one scheme better than the others?
No. Each is a starting point with a different balance of contrast and calm. Many good designs bend the angles a little by eye after the maths gives a first draft.
Do I need all the colors a scheme gives me?
No. A triad can supply one accent and leave the rest unused. The scheme tells you which hues will sit well together if you need them.