Live WCAG Contrast Checker

Large Heading Sample (24px Bold)

Body text sample (16px regular). Strong luminance contrast keeps articles comfortable to read across phones, glare, and low-vision displays.

CONTRAST RATIO
17.85 : 1
AA Normal: PASS AA Large: PASS AAA Normal: PASS AAA Large: PASS

Why Color Contrast Matters

Low-contrast gray text on white backgrounds may look sleek on a bright studio monitor, but it breaks down fast in the real world. Around 1 in 12 men and 1 in 200 women experience some form of color vision deficiency, and millions more read websites on dimmed phone screens, aging displays, or outdoors in direct sunlight.

Accessible contrast is not just an ethical and legal requirement under frameworks like the ADA and European Accessibility Act—it directly reduces bounce rates and improves reading comprehension for every visitor.

WCAG 2.1 Contrast Thresholds Explained

The Web Content Accessibility Guidelines (WCAG 2.1) measure contrast on a scale from 1:1 (identical colors, zero visibility) to 21:1 (pure black #000000 on pure white #FFFFFF).

Element Type Level AA (Standard Target) Level AAA (Enhanced)
Normal Text (< 18pt / 24px regular) 4.5 : 1 minimum 7.0 : 1 minimum
Large Text (≥ 18pt / 24px regular, or ≥ 14pt / 18.67px bold) 3.0 : 1 minimum 4.5 : 1 minimum
UI Components & Icons (input borders, focus rings, charts) 3.0 : 1 minimum Not separately defined

How Relative Luminance Works (Why Yellow Fails on White)

Human eyes do not perceive Red, Green, and Blue light as equally bright. Our photoreceptors are overwhelmingly sensitive to green wavelengths, moderately sensitive to red, and far less sensitive to blue. WCAG calculates relative luminance using the formula:

L = 0.2126 × R + 0.7152 × G + 0.0722 × B (after converting sRGB channels to linear light).

That weighting explains two surprising design traps:

Four Common Contrast Traps & Quick Fixes

The Fastest Way to Fix a Failing Brand Color

If your brand accent fails AA on white, you rarely need to abandon the hue. Convert the code to HSL format, keep the exact same Hue angle, and drop the Lightness value by 10–15% for text and button variants. Your brand identity stays intact while readability jumps past 4.5:1.

🎨 Inspect CSS Colors & HSL Codes → Browse All Guides →