If people can’t read your text, nothing else about your design matters. Colour contrast is the single biggest factor in readability, and there’s a clear, simple standard for it. No jargon, promise. Here’s what the numbers mean and how to hit them, even on gradients and pastels.
Who needs good contrast?
Everyone, at some point.
- People with low vision or colour vision deficiency. Roughly 1 in 12 men and 1 in 200 women see colour differently.
- Anyone over about 40, as eyes naturally lose contrast sensitivity.
- Anyone on a phone outdoors in sunlight.
- Anyone on a cheap, dim or washed-out screen.
- Anyone who’s tired.
Good contrast isn’t a niche feature. It’s the difference between your message landing and being skipped.
What a contrast ratio is
A contrast ratio compares how bright two colours are. It runs from 1:1, identical colours, to 21:1, pure black on pure white. Bigger is more readable.
The standard everyone uses is the Web Content Accessibility Guidelines, WCAG. They set minimums:
| Content | AA (the usual target) | AAA (enhanced) |
|---|---|---|
| Normal text | 4.5:1 | 7:1 |
| Large text | 3:1 | 4.5:1 |
| Icons, buttons, form borders | 3:1 | — |
“Large text” means roughly 24 px and up, or about 19 px and up if bold. Logos and purely decorative elements are exempt.
What the numbers look like
| Text | Background | Ratio | Verdict |
|---|---|---|---|
| #0F172A navy | #FFFFFF white | 17.9:1 | Excellent |
| #0F172A navy | #FFD6E7 pastel pink | 13.6:1 | Excellent |
| #64748B slate | #FFFFFF white | 4.8:1 | Passes AA |
| #FFFFFF white | #3B82F6 blue | 3.7:1 | Large text only |
| #FFFFFF white | #EC4899 pink | 3.5:1 | Large text only |
| #FFFFFF white | #FFD6E7 pastel pink | 1.3:1 | Fails |
Notice the pattern: dark text on pastels is superb; white text on bright mid-tones is borderline; white on pastel is unreadable.
It’s about lightness, not hue
Red on green might feel like strong contrast, but if both are similarly bright the ratio is poor, and for someone who is red-green colour blind they can look nearly identical. Contrast comes from a difference in lightness. A quick test: view your design in greyscale. If the text disappears, the contrast isn’t there.
Pastels: easy mode, with one trap
Pastels are light, so dark text on them is always fine. The trap is using a pastel as text, or putting white on it.
- Do: dark navy, charcoal or a deep version of the same hue on a pastel.
- Don’t: white or pale text on a pastel.
- Don’t: pastel text on white. Pastel pink on white is about 1.3:1.
For the full story on soft colours, see why pastels took over.
Text on gradients
A gradient changes colour under your text, so the contrast changes too. The rule: test against the worst point, the part of the gradient closest in lightness to your text.
- For white text, check the lightest stop.
- For dark text, check the darkest stop.
- If one end fails, darken or lighten that stop, or move the text.
This is why gradients with similar lightness at both ends are easier to design with. See gradients that look expensive.
Quick fixes when contrast fails
- Darken the text. Usually the simplest fix.
- Darken or lighten the background. Shift the stop that’s causing trouble.
- Add a panel. A white or dark box behind the text, solid or semi-transparent.
- Add an overlay. A translucent dark layer over the whole background lifts white text everywhere.
- Make the text bigger and bolder. Large text only needs 3:1.
- Add a soft shadow or outline. A subtle dark shadow helps white text over busy images. Treat it as a boost, not a substitute.
Text on patterns and photos
Busy backgrounds are harder than any single colour. Lines and dots cut through letterforms. Keep patterns very low contrast with their base, or give text its own panel. For which background suits which job, see solid vs gradient vs pattern.
Don’t rely on colour alone
If red means error and green means success, some people won’t see the difference. Pair colour with something else: an icon, a label, an underline, a pattern. Links in body text should be underlined or otherwise marked, not just a different colour.
How to check
- Browser developer tools. Inspect any text; the colour picker shows the contrast ratio and whether it passes.
- Online contrast checkers. Paste two hex codes, get a ratio.
- Design tool plugins. Most have a contrast checker built in or available.
- The squint test. Squint at your design or step back. Whatever disappears first needs more contrast.
- The phone-in-sunlight test. The harshest real-world check there is.
Each of our colour pages lists the contrast ratio for dark text on that colour, such as lavender.
Check your own screen too
If your monitor is too bright or crushes light shades together, pale-on-pale can look fine to you and invisible to everyone else. Run the calibration patches so you’re judging honestly.
Can contrast be too high?
For some readers, pure black on pure white at full brightness feels harsh over long passages. A near-black on an off-white is still well above 7:1 and often more comfortable. That’s a refinement, not a reason to go low.
The takeaway
Aim for 4.5:1 on normal text and 3:1 on large text and interface elements. Use dark text on light or pastel backgrounds, test gradients at their worst point, and never rely on colour alone. Build a background in the studio, then check your text against it before you publish.
FAQ
At least 4.5:1 for normal text and 3:1 for large text and interface elements, under WCAG AA.
Yes, if the lightest part of the gradient still gives at least 4.5:1, or 3:1 for large text.
Yes. Dark navy or charcoal on pastels typically scores well above 10:1.