- Level
- AA
- Since
- WCAG 2.0
- Entries
- 100 / 193
1.4.3 Contrast (Minimum)
Text has to stand out from its background: at least 4.5:1, or 3:1 for large text.
/ What it requires
Text has to be readable against whatever is behind it. The measure is a contrast ratio between the text colour and the background colour, from 1:1 for identical colours to 21:1 for black on white. Pale grey on white, white on a light brand colour and text laid over a photograph are hard to read for people with low vision or reduced contrast sensitivity, and for anybody holding a phone in sunlight.
Normal text needs at least 4.5:1. Large text, defined as at least 18 point or 14 point bold (about 24 and 18.66 CSS pixels), needs at least 3:1. Images of text are held to the same numbers, and the values are not rounded: 4.499:1 does not pass. The criterion exempts text in inactive controls, pure decoration, text nobody can see, text that is an incidental part of a picture, and logos or brand names.
/ How pages fail it
- Body text or captions are set in light grey on white, a combination that often lands below 4.5:1.
- Placeholder text in form fields is paler than the text typed into them and falls under the threshold.
- White text sits on a light brand colour in buttons, badges and banners.
- Text is placed over a photograph or a gradient with no solid layer behind it, so parts of it disappear.
- A translucent panel or a reduced opacity on the text lowers the ratio that the stylesheet colours suggest.
/ How to check it yourself
- In Chrome or Edge, inspect a text element and click the colour swatch next to color in the Styles pane. The picker shows the contrast ratio and whether it meets AA.
- For text over images use a free eyedropper tool such as the Colour Contrast Analyser and sample the lightest and the darkest point behind the letters.
- Check the states too: links, hover and focus colours, placeholders, error messages and text on buttons.
- Confirm the size before you apply 3:1. Text below 24 pixels, or below 18.66 pixels in bold, counts as normal text.
/ How to fix it
- Darken the color value or change background-color until the pair reaches 4.5:1. On white, #767676 is about the lightest grey that passes for normal text.
- Style placeholders explicitly with the ::placeholder selector and a colour that reaches 4.5:1 against the field.
- Put a solid or semi-opaque background-color behind text that sits on an image, or darken the image itself with an overlay.
- Do not mute text with opacity. Pick a colour that passes on its own, because opacity blends the text into whatever is behind it.
- Store checked colour pairs as CSS custom properties, so every component draws on the same palette.
/ What our scanner checks
The rendered pass takes each visible text element, blends every translucent background layer and ancestor opacity into the colour actually behind it, and compares that with the text colour. Typed text and placeholders in form fields are measured separately, and HTML_CodeSniffer adds its own calculation from the CSS. Text over an image or a gradient is handed to a person, and hover or focus colours are not measured.
/ Who fails it, in our own measurements
One page per body, measured by automated checks on a weekly schedule. Any body that has fixed something since the last sweep will show it at the next one, and every entity page carries a right of reply.
/ Questions about this criterion
What contrast ratio does WCAG AA require?
At least 4.5:1 between normal text and its background, and at least 3:1 for large text. The same numbers apply to text inside images. The ratios are not rounded, so 4.499:1 fails. Level AAA raises the bar for normal text to 7:1 under 1.4.6, and the parts of controls and graphics that are not text are covered separately by 1.4.11.
What counts as large text in WCAG?
Text of at least 18 point, or at least 14 point when it is bold. With the usual conversion that is about 24 CSS pixels, or 18.66 CSS pixels in bold. Text of that size needs a contrast ratio of 3:1 instead of 4.5:1. Anything smaller is normal text, even when it is set in capitals or in a heavy typeface.
Do logos and disabled buttons have to meet the contrast ratio?
No. The criterion sets no contrast requirement for text that is part of a logo or brand name, for text in an inactive user interface component, for pure decoration, or for text that is an incidental part of a picture with other significant content. Everything else a visitor is meant to read has to meet it, including placeholder text and text on active buttons.
