How a screen makes color
Subpixels
Close up, a screen has no colors at all, only tiny red, green and blue lights. Every color you see is those three, each at its own brightness, too small to tell apart. How they are laid out differs from screen to screen: a watch, a phone, a monitor and a TV each arrange them their own way, in stripes, in diamonds, in clusters, some with a white one added.
- Stripes
- Red, green and blue side by side; most monitors.
- Diamonds
- More green than red or blue, since the eye is most sensitive to green; most phone OLEDs.
- So what
- The same hex is not the same light on every screen. Check a palette on the devices it is for.
- Additive
- Light, RGB. Starts from black; every light added makes it brighter, all three make white. Screens.
- Subtractive
- Ink, CMYK. Starts from white paper; every ink takes light away, all three make (nearly) black. Print.
Blending modes say the same thing
The two ways of mixing are already in every design tool, as blending modes. Screen mixes like light: a red over a green turns yellow where they overlap. Multiply mixes like ink: the same red over the same green goes dark. Knowing which is which explains why a Screen layer can only ever lighten and a Multiply layer can only ever darken.
- Red + green
- Yellow. Never darker than either layer.
- Red × green
- Black. Never lighter than either layer.
Three numbers name a color
A hex code tells a screen what to do. It does not tell a person much. HSB (also written HSL or HSV, which differ in how they measure the third number) names a color the way we talk about it.
| Number | Also called | Answers |
|---|---|---|
| Hue, 0–360° | Color | Which color: its place around the wheel. 0 red, 120 green, 240 blue. |
| Saturation, 0–100 | Chroma | How much color: from grey to as pure as it gets. |
| Brightness, 0–100 | Lightness, value, black, luminance | How much light: from black to full. |
The same hue, 60, three ways: change only saturation or only brightness and it stays recognisably "that yellow", which is why designers build palettes in HSB.
Try it: drag across the square for saturation (left to right) and brightness (bottom to top); drag along the strip under it for hue.
- HUE
- SAT
- BRI
Temperature
Hue also carries a temperature. Reds, oranges and yellows read warm and seem to come forward; blues and greens read cool and seem to sit back. Temperature is relative: a green next to a blue looks warm, the same green next to a yellow looks cool.
From warm to cool.
The eye bends what it sees
Abney effect
Mix white into a color and its hue seems to shift, even though its hue number never changed. Blue drifts towards purple as it gets paler; red drifts a little towards pink-purple too. So a tint ramp built only by lowering saturation can look like it changes hue halfway; nudge the hue to keep it looking like one color.
Red and blue, each mixed with more and more white. Only saturation changes, hue stays at 0 and 240, yet the pale blues look violet.
Simultaneous contrast
A color is never seen alone; the colors around it change it. The same small square looks different on two grounds. In both pairs below, the centres are exactly the same color.
- Same red
- On its complement, green, it looks louder and more saturated. On a neighbour, orange-red, it looks dull.
- Same grey
- On ochre it leans blue-violet; on lavender it leans yellow. A neutral takes on the complement of its ground.
For an interface this means a color has to be checked where it will live: a brand color picked on white will not be the same color on a dark surface or next to an image.
Combining colors
The color wheel
The wheel lays hues in a circle so that relationships become distances. Three primaries, the three colors between them, then the colors between those. Painters watched these relationships in light: Monet painted the same haystacks again and again because the light, and so every color in them, kept changing.
Harmonies are shapes laid on the wheel. Pick a harmony, then drag the large dot around the wheel (or click anywhere on it) to move the base hue; the others follow.
Drag the large dot
One hue, many saturations and brightnesses. Calm and unified; hierarchy has to come from value, since there is no hue to lean on.
Neighbours on the wheel, within about 60°. Soft and natural, like a sky into a sea. Pick one to lead.
Opposites, 180° apart. The most contrast two hues can give; use one large and the other small, as the accent.
A base and the two neighbours of its opposite. Nearly as lively as a complement, less of a clash.
Three hues evenly apart, 120°. Bright and playful; works when one dominates and the other two are toned down.
Two complementary pairs. The richest set and the hardest to balance.
Tone families
Beyond the wheel's geometry, palettes are also grouped by feel. Each family is a range of saturation and brightness more than a set of hues.
- Range
- Low saturation, middle brightness. Sand, clay, olive, umber.
- Feels
- Warm, grounded, natural, quiet.
- Range
- High saturation, low-to-middle brightness. Ruby, emerald, sapphire, amethyst.
- Feels
- Rich, deep, precious.
- Range
- Full saturation, full brightness, often on dark or iridescent grounds.
- Feels
- Electric, synthetic, loud.
Low key and high key
Key is the overall brightness of a composition. A low-key design lives in the dark half, with light used sparingly so it draws the eye. A high-key design lives in the light half, with shadows and darks kept small.
- Feels
- Moody, serious, premium, focused.
- Feels
- Airy, open, friendly, fresh.
A palette from a picture
The lecture's method for building a palette: start from an image whose mood you want, pick colors from it, read each one in HSB, then put them on the wheel to see which harmony you have found. These are the readings from the lecture's examples.
A pale building under a summer sky. Very low saturation everywhere but the sky: a high-key, nearly analogous set of cool blues and warm creams.
Two more palettes in the same spirit, as proportion strips: the widest color is the ground, the narrowest the accent. The first is cool lilac and blue with a green and a pink accent; the second sand and slate with sage and coral.
A salt flat: a nearly white cyan ground and one saturated yellow, a complementary pair kept apart by size.
Color at work in an interface
The lecture ended on one small card, a cocktail recipe, carried through every decision: is the text readable, is the type set on a scale, is the spacing right, does the button tell you what it is doing.
Contrast first
A palette can be harmonious and still fail people. WCAG AA asks for a contrast ratio of at least 4.5 : 1 for normal text, 3 : 1 for large text and for the parts of controls you need to see. The ratio compares the relative luminance of the two colors; it runs from 1 : 1 (the same) to 21 : 1 (black on white).
Classic
Martini
- 60 ml gin
- 15 ml dry vermouth
- An olive
Classic
Martini
- 60 ml gin
- 15 ml dry vermouth
- An olive
Classic
Martini
- 60 ml gin
- 15 ml dry vermouth
- An olive
Try it: point to a button color and a label grey and watch the ratio. Moving up and down in the square (brightness) does almost all the work; moving along the hue strip barely changes it.
- Button
- Label
Button color
Label grey
Type on a scale
Once the colors read, the type needs a system too. The card used Material 3's type scale, where every style is a size and a line height chosen together, so nothing is set by eye.
| Role on the card | M3 style | Size / line height |
|---|---|---|
| Card title, large | Headline Small | 24 / 32, regular |
| Card title | Title Large | 22 / 28, regular |
| Subtitle | Title Medium | 16 / 24, medium |
| Body | Body Large | 16 / 24, regular |
| Ingredients | Body Medium | 14 / 20, regular |
| Button | Label Large | 14 / 20, medium |
Spacing groups things
Space says what belongs together. Tight space inside a group and more space between groups lets the eye read structure before it reads words. Even space everywhere, or more space inside a group than around it, makes the card fall apart.
Classic
Martini
- 60 ml gin
- 15 ml dry vermouth
- An olive
Classic
Martini
- 60 ml gin
- 15 ml dry vermouth
- An olive
States are color too
A button changes color to say what is happening to it. Material does this with a state layer: a see-through layer of the label color over the button, stronger the more is happening, so every state is derived from the one button color.
Dynamic color
Material 3 can build a whole scheme from one source color, often taken from the user's wallpaper. Its "harmony" step pulls fixed colors, like an error red or a brand color, slightly towards the source hue so they sit with the scheme without losing their meaning. It is the color wheel and the contrast rules above, done by the system.