WCAG Encyclopedia

1.4.3 · PerceivableLevel AA

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.

Broken: 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.

Fixed: 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.

  1. List every text colour on the page against the background behind it, including links, buttons, placeholder text, error messages and text on images.
  2. Measure each pair with the colour picker in Chrome or Edge DevTools, which shows the contrast ratio, or with the free Colour Contrast Analyser.
  3. 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.
  4. 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.
  5. 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

How to use this lab

  1. Goal. Pick a text colour and a background, and find out whether people can read one on the other.
  2. The controls. The Text colour and Background fields each take a colour from a picker or a hex code, and the Swap text and background colours button swaps them. The preview is drawn in your two colours, and Contrast ratio, the 1–21 scale and the checks show how the pair measures against each threshold. Preview in greyscale shows the preview without colour, and when body text fails, the Use button sets the closest passing text colour.
  3. Try this. The lab starts with near-black text on yellow, which passes easily. Type #999999 in the Text colour hex field and #FFFFFF in the Background hex field, then press the Use button to fix the pair.
  4. What it means. On 1.4.3 and 1.4.1 the verdict line under the lab says whether body text reaches 4.5 : 1, the 1.4.3 level. On 1.4.11 it says whether borders and icons reach 3 : 1. Below that, people with low vision, or anyone on a dim screen, can’t read the text or make out the control.

Pick a text colour and a background. Everything below is drawn in those two colours and measured live.

Text colour
Background
Contrast ratio11.74 : 1

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.74 : 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 pair has 11.74 : 1.
  • PassesLarge text, AA · 1.4.3Large text needs at least 3 : 1. This pair has 11.74 : 1.
  • PassesBody text, AAA · 1.4.6Body text at AAA needs at least 7 : 1. This pair has 11.74 : 1.
  • PassesBorders and icons, AA · 1.4.11Borders and icons need at least 3 : 1. This pair has 11.74 : 1.

1.4.3 passes

Open the full colour check

Try it: fade the text

How to use this lab

  1. Goal. Fade the opening hours text until it is too faint to read, and see where that happens.
  2. 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.”
  3. 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.
  4. 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.

Raise the slider to fade the text towards the background. The ratio and results update as you move it.
Contrast ratio11.94 : 1

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.