Design, before Any Software · Chapter 04

The lightness slider is not lightness

2:30 · Narrated with a synthetic voice. Captions are available in the player.

Read the transcript

Colour. Most palette tools vary the hue while holding lightness roughly still, which is what makes a strip of swatches look harmonious, and it is why the result collapses into one grey when you desaturate it. Worse, the lightness slider in that model is not measuring lightness at all. Pure yellow and pure blue both sit at fifty per cent, and yellow carries more than twelve times the light of blue, because the eye is far more sensitive to green than to blue. So build palettes by moving lightness, in a space that measures it honestly, and choose the hue afterwards. A palette is a set of lightness decisions with hues attached, not the reverse. Text legibility is not a matter of opinion. There is a number, and it is worth knowing where it comes from. Take the two colours, undo the gamma encoding on each channel, weight them by how much of each the eye actually sees, add a small constant to both for the light bouncing off the glass, and divide. Four point five to one for body text. Three to one for large text and for the parts of a control that carry meaning. A mid grey of seven six seven six seven six on white gives four point five four, and one step lighter fails. Treat the threshold as a floor, because at four point six there is no headroom for sunlight or a cheap screen. Then the rule that catches most of what is left. Colour must never be the only thing carrying a meaning. Roughly one man in twelve has some form of colour vision deficiency, and beyond that colour fails in sunlight, on a bad projector, in a photocopy and in a screenshot pasted into a document. So a red cross and a green tick, not two coloured dots. A label at the end of each line on a chart, not a legend. A border and an icon and a sentence on an invalid field, not a red outline alone. And the check costs nothing. Turn the whole thing to greyscale and ask whether you can still use it.

Sources and further reading (1)