Colour Contrast Rules: WCAG 4.5:1, 3:1, 7:1 and Large Text
Contrast runs from 1:1 to 21:1. WCAG 2 thresholds (AA 4.5:1, large 3:1, AAA 7:1), what counts as large text, how the ratio works, and grey-text failures.
📚 Free Web Tools · 28/52·⏱ About 4min read·Information updated 2026-11-03
📋 Key facts5
Range
1:1 (same colour) to 21:1 (black and white)
AA
Normal text 4.5:1, large text 3:1 or more
AAA
Normal text 7:1, large text 4.5:1 or more
Large text
18pt (about 24px) or more, or bold 14pt (about 18.66px) or more
Non-text
Button borders, icons and the like need 3:1 (since WCAG 2.1)
Contrast is the minimum for readability
When the difference in lightness between text and background is small, people with low vision or colour vision deficiencies, and anyone reading a phone in sunlight, struggle to read. WCAG 2, the international web accessibility guideline, measures this difference as a number called the contrast ratio and sets minimum thresholds. This site's contrast checker shows the ratio for the text and background colours you pick, along with AA and AAA pass or fail for normal and large text, in a live text preview.
How the ratio is calculated
The contrast ratio is calculated by finding the relative luminance of each colour (a brightness value matched to how the human eye perceives light) and computing (lighter luminance + 0.05) ÷ (darker luminance + 0.05). Two identical colours give 1:1, and black on white gives the maximum of 21:1. Relative luminance weights red, green and blue differently, with green weighted most heavily, so guessing brightness from a simple average of RGB values goes badly wrong.
AA and AAA thresholds
WCAG 2 success criterion 1.4.3 (Contrast (Minimum), level AA) requires at least 4.5:1 for normal text and 3:1 for large text. The stricter 1.4.6 (Contrast (Enhanced), level AAA) requires 7:1 for normal text and 4.5:1 for large text. Most laws and organisational policies aim for level AA. Pass or fail is judged on the unrounded value, so 4.48:1 falls short of 4.5:1.
AA normal text: 4.5:1 or more
AA large text: 3:1 or more
AAA normal text: 7:1 or more
AAA large text: 4.5:1 or more
What counts as large text
In WCAG, large text means text of at least 18 points, or at least 14 points if bold. In CSS pixels on a web page, 18pt is 24px and bold 14pt is about 18.66px. So regular-weight 16px body text is not large text and must exceed 4.5:1. A bold heading of 18.66px or more can use the 3:1 threshold. Scripts with complex strokes such as Hangul look denser at the same size, so it is better to clear the threshold with room to spare than just barely.
The common grey-text failure
Light grey text on white looks clean and is popular, but it often fails. For example, #777777 on a white background (#FFFFFF) is about 4.48:1, just short of the 4.5:1 normal-text threshold, while #767676 is about 4.54:1 and passes. To exceed 7:1 you need to go as dark as about #595959. The same thresholds apply to text people actually need to read, such as placeholder hints in input fields and secondary descriptions that are not disabled.
#777777 on #FFFFFF: about 4.48:1 — fails AA normal text
#767676 on #FFFFFF: about 4.54:1 — passes AA normal text
#595959 on #FFFFFF: about 7.0:1 — passes AAA normal text
Non-text elements and exceptions
Success criterion 1.4.11 (Non-text Contrast, level AA), added in WCAG 2.1, requires a contrast of at least 3:1 against adjacent colours for visual elements people need to perceive, such as the borders of buttons and input fields, focus indicators, and meaningful icons and charts. Pure decoration, disabled buttons and text within logos, on the other hand, are exempt from the contrast requirements. WCAG 2.2, published as a Recommendation in October 2023, keeps these contrast criteria unchanged.
Tips for choosing colours
If a brand colour falls short, the easiest fix is to keep the hue and adjust only the lightness. This site's checker has a button that adjusts the lightness of the text colour until it passes the AA body-text threshold. Colours can be written in HEX, RGB or HSL; if you received a colour in another notation, convert it with this site's colour converter before entering it. Not relying on colour alone to convey information (for example, marking errors only with red text) and adding text or an icon is also an accessibility basic.
Summary
Contrast thresholds are the minimum for readability, so it is best to clear them with room to spare.
Body text 4.5:1, large text 3:1 or more (AA)
Large text is 24px or more, or bold 18.66px or more