Sub topic 7
What makes a colour harmony
This chapter assumes you can name hue, saturation, and lightness and that you have used a colour picker. It also assumes you have seen a colour wheel. Here you learn what a harmony is, how it is built, and why a harmonious palette is not always a usable one.
The working model
A colour harmony is a set of colours whose hues sit at fixed angular distances from each other on the colour wheel. You choose a base hue, then add other hues by rotating a set number of degrees around the wheel. The angles define the relationship. The base hue itself can be anything.
Think of a harmony as a shape laid over the wheel. A line through the centre gives two colours. A narrow arc gives neighbours. An equilateral triangle gives three evenly spaced hues. Rotate the shape and you get a new palette with the same character.
Why the shape matters
Hue is only one of three attributes. A harmony fixes the hue relationships and leaves saturation and lightness free. Two palettes with the same hue angles can feel very different. One may be bright and loud, and the other soft and muted.
The angle also sets the tension in the palette:
| Harmony | Offsets from base | Typical effect |
|---|---|---|
| Complementary | 180 | High tension, strong contrast |
| Analogous | -30, 0, 30 | Calm, cohesive |
| Triadic | 0, 120, 240 | Varied, lively, balanced |
Wider spacing gives more contrast between hues. Narrower spacing gives more unity.
Building one by hand
Pick a base hue, such as 210, which is a blue. Add the offsets for the harmony you want. If a result goes past 360, subtract 360. If it goes below 0, add 360.
For a complementary pair from base 210, the second hue is 210 + 180 = 390. Subtract 360 and you get 30, an orange. Blue and orange are a classic pair.
In CSS you can do this with a custom property:
:root {
--base-hue: 210;
}
.base {
background: hsl(var(--base-hue) 65% 45%);
}
.complement {
background: hsl(calc(var(--base-hue) + 180) 65% 45%);
}Both rules use the same saturation and lightness, so only the hue differs. CSS accepts hue values above 360 and wraps them, so no modulo step is needed here.
Common errors
- Using every colour at full strength. A harmony tells you which hues to use. It does not tell you how much of each to use. Equal amounts of saturated colour compete for attention.
- Treating the angle as a rule about the whole palette. Changing saturation or lightness of a colour does not break the harmony. Changing its hue does.
- Forgetting the wheel. Angles depend on the wheel they are measured on. On the RGB-based HSL wheel, the complement of blue at 210 is 30. On the traditional RYB wheel, the complement of blue is orange, but other pairs differ. Check which wheel your tool uses.
- Assuming harmony means readable. Two hues can be in perfect harmony and still fail a text contrast check. Harmony describes hue relationships. Contrast depends on lightness differences. A later chapter covers the check.
What comes next
The following chapters take each harmony in turn. You will see how complementary, analogous, and triadic schemes behave, and how proportion keeps them balanced.
Exercise
Your base hue is 300 in HSL. Find the triadic hues. Then say why 300 + 120 needs no wrapping but 300 + 120 + 120 does.
Show answer
The triadic hues are 300, 60, and 180. Adding 120 gives 420, which wraps to 60 after subtracting 360. Adding 240 gives 540, which wraps to 180. Correction: 300 + 120 = 420 also exceeds 360, so both offsets wrap. Neither stays below 360 because the base is already high. The point is that any sum of 360 or more must have 360 subtracted.
Exercise
A designer says a blue and orange pair is harmonious but the orange text on a blue background is hard to read. Is the designer wrong? Explain.
Show answer
No. The pair is harmonious because the hues are 180 degrees apart. Readability depends on the lightness difference between text and background, and the two colours may have similar lightness. Adjust the lightness of one colour until the contrast ratio passes.