Sub topic 3
Reading the colour wheel
This chapter assumes you know what hue, saturation and lightness mean, and that RYB, RGB and CMY(K) are different colour models. Here you will learn to read a wheel as a coordinate system. By the end you can find any colour on it and measure its distance from any other colour.
What the wheel shows
A colour wheel arranges hues around a circle. Each position is an angle from 0 to 359 degrees, and the wheel in this chapter follows the HSL model used by CSS and most colour pickers.
- Angle around the circle is hue.
- Distance from the centre is saturation. The rim is fully saturated and the centre is grey.
- Lightness is not drawn. A flat wheel is one slice taken at a fixed lightness, usually 50%.
The third point causes many mistakes. Moving a colour up or down in lightness does not move it around the wheel. It stays at the same angle, so a pale pink and a deep maroon can share one hue.
Landmarks on the HSL wheel
Six anchor hues sit 60 degrees apart. Every other hue lies between two of them.
| Angle | Hue |
|---|---|
| 0 | Red |
| 60 | Yellow |
| 120 | Green |
| 180 | Cyan |
| 240 | Blue |
| 300 | Magenta |
Angle 360 is the same as angle 0, because the wheel closes on itself. A hue of 350 is therefore only 10 degrees from red, not far from it.
Measuring distance between colours
Reading the wheel means measuring the angle between two hues. Always take the shorter way around the circle.
- Subtract one hue from the other.
- Take the absolute value.
- If the result is more than 180, subtract it from 360.
Hue 20 and hue 340 differ by 320 on paper, so the true gap is 360 − 320 = 40 degrees. They are close neighbours, both reddish.
The largest possible gap is 180 degrees, which is the exact opposite point. Later chapters turn these gaps into schemes. Small gaps give neighbours, 180 gives opposites, and 120 gives three evenly spaced hues.
Drawing a wheel in CSS
You can draw the wheel to check your reading of it. A conic gradient sweeps colours clockwise from the top, which matches how hue increases.
.wheel {
width: 240px;
height: 240px;
border-radius: 50%;
background: conic-gradient(
hsl(0 80% 50%),
hsl(60 80% 50%),
hsl(120 80% 50%),
hsl(180 80% 50%),
hsl(240 80% 50%),
hsl(300 80% 50%),
hsl(360 80% 50%)
);
}This draws a flat slice at 80% saturation and 50% lightness. It has no desaturated centre, so it shows hue only.
Common errors
- Assuming every wheel is the same. A traditional RYB wheel puts yellow, red and blue at the main positions. The HSL wheel above puts red, green and blue at 0, 120 and 240. The same angle can name a different colour on each wheel, so the opposite of a colour depends on which wheel you use.
- Treating the wheel as a full palette. It shows hue at one lightness. Most usable colours are lighter, darker or greyer than the rim.
- Forgetting the wrap-around. Hues near 0 and near 360 are neighbours.
- Judging distance by eye. Hues do not look evenly spaced. The greens look broad and the blues look narrow, even though each degree is the same size.
Exercise
A palette uses a base hue of 30 and a second colour at hue 310. What is the angle between them on the HSL wheel, and are they closer to being neighbours or opposites?
Show answer
The raw difference is 310 − 30 = 280, which is more than 180. The shorter way around is 360 − 280 = 80 degrees. They are neither neighbours nor opposites. The gap is a little under halfway to the 180-degree opposite point.