WCAG Contrast Ratios Explained: The Numbers That Decide Readability
Light gray #E2E2E9 on white fails WCAG at 1.28:1. SitePoint's guide sets out the exact AA and AAA contrast thresholds — 4.5:1, 3:1, 7:1 — and how to test them.
- AuthorTom Whitfield
- ChannelAccessibility
- Filed
- Read3 min

- WCAG 2.1 Level AA requires 4.5:1 contrast for normal text, 3:1 for large text (18pt or 14pt bold), and 3:1 for UI components and graphics such as icons and input borders.
- Level AAA raises the requirements to 7:1 for normal text and 4.5:1 for large text; SitePoint calls 4.5:1 the industry benchmark minimum.
- SitePoint's failure example: light gray #E2E2E9 on white #FFFFFF yields a 1.28:1 ratio; black on white reaches 21:1 and passes every level. WebAIM's free Contrast Checker verifies pairs against AA and AAA.
Text set in light gray #E2E2E9 on a white #FFFFFF background produces a contrast ratio of 1.28:1 — far below every threshold the Web Content Accessibility Guidelines define, and a concrete example of a failure mode SitePoint walks through in a new article on color contrast and web accessibility by software engineer Ilknur Eren.
Color contrast, as Eren defines it, is the difference in lightness between a foreground color such as text and its background. When the two values sit too close together, interface elements blend into the page. Light gray on white reads as low contrast; black on white, at a ratio of 21:1, passes every level of WCAG with room to spare.
The article grounds its argument in WCAG 2.1, the international standard for web accessibility, and its specific quantifiable ratios rather than aesthetic judgment. The numbers matter because they carry legal and compliance weight, and because they map directly to measurable user outcomes.
Who benefits from adequate contrast
Eren identifies five distinct groups and situations that sufficient contrast serves:
- Users with low vision — high contrast keeps text distinguishable from the background when acuity is reduced.
- Users with color vision deficiency — strong luminance separation prevents elements from becoming confused with one another when hue differentiation fails.
- Eye strain reduction — clear contrast lowers reading fatigue for all users, not only those with diagnosed conditions.
- Adverse viewing conditions — glare and bright sunlight degrade screen legibility; adequate contrast preserves readability under both.
- Legal compliance — meeting WCAG contrast ratios helps satisfy accessibility requirements.
That fourth point deserves emphasis in design reviews. A palette that tests acceptably under office lighting can become unreadable on a phone held outdoors, and contrast ratio is the metric that predicts this before shipping.
The ratios, by level
SitePoint lists the thresholds as follows:
- Level AA (minimum requirement): normal text requires a contrast ratio of 4.5:1; large text — 18pt, or 14pt bold — requires 3:1; user interface components and graphical objects such as icons, input borders, and graphs also require 3:1.
- Level AAA (enhanced requirement): normal text requires 7:1; large text requires 4.5:1.
Eren calls the 4.5:1 ratio for normal text at Level AA the industry benchmark, and the minimum target every website should strive for. The distinction between normal and large text matters in practice: headings and display type enjoy a lower threshold, so a design system can assign its lighter tints to larger sizes while reserving darker values for body copy.
The 3:1 requirement for non-text elements is the one teams most often miss. Input borders, standalone icons, and data visualization marks fall under the same AA criterion as text, yet they routinely ship in tints that only barely register against their backgrounds.
Testing the numbers
The article points to WebAIM's Contrast Checker as a free verification tool. Designers and developers enter a foreground and background color pair, and the tool reports whether the combination passes WCAG AA or AAA.
SitePoint illustrates both ends of the spectrum with worked examples. The failure case: #E2E2E9 on #FFFFFF, a ratio of 1.28:1 that passes neither AA nor AAA — light gray text effectively dissolving into a white page. The passing case: #000000 on #FFFFFF at 21:1, which clears every level.
The gap between those two examples is the entire practical discipline. A designer choosing a muted gray for secondary text does not need to guess whether it reads; the ratio answers the question in seconds, and the WCAG thresholds convert that answer into a pass or fail decision.
Eren frames the payoff beyond compliance: prioritizing contrast serves users with low vision, color blindness, and anyone viewing screens in poor lighting or glare, and fosters an inclusive digital environment rather than a checkbox exercise.
For teams building design systems, the actionable path is to encode these ratios as tokens — minimum foreground values per background, per text size — so that a contrast failure becomes impossible to compose rather than something caught in review. As WCAG continues to shape accessibility litigation and procurement requirements worldwide, the 4.5:1 baseline is likely to remain the floor designers are measured against.
Original: uploads.sitepoint.com
More from Tom Whitfield
Show full bio
Correspondent covering companies, deals and strategy in Product and interaction design, design systems at Interface Wire.
65 articles