Contrast (Minimum)
Body text needs at least 4.5:1 against its background. Text at 24px, or 18.66px and bold, needs 3:1. Measure it rather than judging by eye — a screen at full brightness in a dim room is the most forgiving possible viewing condition, and it is the one you are designing in.
- Principle
- Perceivable
- Guideline
- 1.4
- Level
- AA
- In WCAG since
- 2.0
- Number
- 1.4.3
Broken, then fixed
The same interface twice: first with the mistake, then with the smallest change that fixes it.
Hierarchy built by fading text out.
Card number
4242 4242 4242 4242
Placeholder grey, helper grey, and disabled grey are three different mistakes with the same cause.
Fails: Body text needs at least 4.5:1. This text has 2.7:1.
Fails: Body text needs at least 4.5:1. This text has 2.3:1.
Hierarchy moved from lightness to weight and scale.
Card number
4242 4242 4242 4242
Helper text keeps its quieter voice through size and weight rather than by fading towards the background.
Passes: Body text needs at least 4.5:1. This text has 7.8:1.
Passes: Body text needs at least 4.5:1. This text has 7.6:1.
How to test
Check your own interface against 1.4.3, one step at a time.
- List every text colour on the page against the background behind it, including links, buttons, placeholder text, error messages and text on images.
- Measure each pair with the colour picker in Chrome or Edge DevTools, which shows the contrast ratio, or with the free Colour Contrast Analyser.
- Check body text reaches at least 4.5:1. Large text, at least 24px, or about 18.5px when bold, needs at least 3:1.
- Check the states too: hover, focus, visited and selected. A link that turns paler on hover has to meet the ratio in that state as well.
- For text over a photo or a gradient, measure against the part of the background closest in colour to the text.
Common questions
Does disabled text need to meet 1.4.3?
No. Text in a control people cannot use, such as a disabled button, is exempt.
Does placeholder text need to meet 1.4.3?
Yes. Placeholder text is text, so it needs 4.5:1 against the field background, like any other text of its size.
Does a ratio of 4.49:1 round up to pass?
No. W3C says the ratio is not rounded, so anything below 4.5:1 fails for normal text, however close.
Does the text in a logo need to meet 1.4.3?
No. Text that is part of a logo or brand name is exempt. Text you made pale by choice, and not because the brand requires it, is not.
Try it yourself
A lab is a small working piece of interface that you change yourself. Read its steps, use the controls under it, and watch the verdict line at the bottom: it says whether the criterion passes or fails as you go. Reset puts it back.
Try it: check your own colours
Try it: fade the text
How to use this lab
- Goal. Fade the opening hours text until it is too faint to read, and see where that happens.
- The controls. The Fade the text slider fades the text towards its dark background, from 0% faded to 100% faded. Contrast ratio shows the ratio on a 1–21 scale, and the checks say whether it meets each text threshold, as in “Body text needs at least 4.5 : 1.”
- Try this. The lab starts at 18% faded. Drag Fade the text past about 60% faded, where body text drops below 4.5 : 1, then past about 73%, where large text drops below 3 : 1.
- What it means. 1.4.3 passes while the text has at least 4.5 : 1 against its background, the level for body text, and fails below that. Fainter text is hard or impossible to read for people with low vision, and for anyone on a dim screen or in bright sun. The verdict line under the lab says which.
Opening hours
Monday to Friday, nine until five. Closed on public holidays.
The contrast ratio compares how bright the two colours are. 1 : 1 means the colours are identical, so text in them is invisible; 21 : 1 is black on white, the most there is. The higher the number, the easier it is to read.
On the scale from 1 : 1 to 21 : 1, 11.94 : 1 is at or above 7 : 1: enough for every threshold.
Why the thresholds differ
- Body text needs 4.5 : 1 (1.4.3, Level AA). That is any text below large size.
- Large text needs 3 : 1 (1.4.3). Large means at least 24px, or 18.66px and bold. Bigger, heavier letters stay readable with less contrast.
- At Level AAA, body text needs 7 : 1 (1.4.6), for people with moderately low vision.
- Borders and icons need 3 : 1 (1.4.11): the edge of a field or checkbox, a focus ring or an icon, against what is next to it. You have to see that they are there, not read them.
- PassesBody text, AA · 1.4.3Body text needs at least 4.5 : 1. This text has 11.94 : 1.
- PassesLarge text, AA · 1.4.3Large text needs at least 3 : 1. This text has 11.94 : 1.
- PassesBody text, AAA · 1.4.6Body text at AAA needs at least 7 : 1. This text has 11.94 : 1.
1.4.3 passes
Also in guideline 1.4
Criteria in the same guideline often fail together.
- 1.4.1, PerceivableLevel A
Use of Color
Fails when: Hue is the only signal.
- 1.4.2, PerceivableLevel A
Audio Control
Fails when: Autoplaying audio with no control on the page.
- 1.4.4, PerceivableLevel AA
Resize Text
Fails when: A fixed-height box clips its own text when enlarged.
- 1.4.5, PerceivableLevel AA
Images of Text
Fails when: A headline exported as an image.
- 1.4.10, PerceivableLevel AA
Reflow
Fails when: Fixed-width columns make the page scroll sideways as well as down at 320px wide.
- 1.4.11, PerceivableLevel AA
Non-text Contrast
Fails when: The field and checkbox edges vanish; only the placeholder hints anything is editable.