WCAG Color Contrast Requirements: 4.5:1, 7:1 & 3:1 Explained
Learn exact WCAG 2.2 contrast thresholds for body copy, bold headings, buttons, form borders, icons, and focus indicators.
Key Takeaways
- Normal text requires 4.5:1 at Level AA (7:1 at AAA).
- Large text (>=24px regular or >=18.67px bold) requires 3:1 at AA (4.5:1 at AAA).
- UI borders, meaningful icons, and focus indicators require 3:1 against adjacent colors (1.4.11).
How WCAG Calculates Contrast
WCAG measures contrast ratio from 1:1 (no contrast) to 21:1 (black on white) using linearized sRGB relative luminance. Green contributes 71.52% of perceived luminance, red 21.26%, and blue 7.22%.
Accessible Slate Text vs. Subtle Gray
.caption { color: #94a3b8; background: #ffffff; } /* 2.56:1 - Fails AA */.caption { color: #475569; background: #ffffff; } /* 7.58:1 - Passes AA & AAA */Frequently Asked Questions
Interactive Tools for This Guide
Color Contrast Checker
Measure exact WCAG 2.2 luminance contrast for text, headings, and UI components.
Accessible Color Palette Generator
Generate a full 50–950 design scale with AA/AAA contrast ratings and CSS/JSON export.
UI Component Contrast Checker
Check input borders, toggles, icons, and buttons against WCAG 1.4.11 (3:1).
Continue Reading
Designing for Color Blindness: Beyond Red vs. Green
Ensure every status indicator, chart series, and inline link pairs color with shape, text, underline, or pattern.
Designing High-Contrast Focus Indicators for WCAG 2.2
Learn how to replace browser default focus rings safely with high-contrast, unobstructed :focus-visible styles.