Color Contrast Compliance (WCAG 1.4.3 & 1.4.11): Designing High-Contrast Dark and Light UI
Learn how to build tokenized color systems that satisfy WCAG 1.4.3 and 1.4.11 contrast requirements in both dark and light modes.
Color contrast violations account for over 80% of all automated accessibility audit errors on the web today. Ensuring that text and interactive controls meet WCAG 1.4.3 and 1.4.11 standards is the single fastest way to improve accessibility and lower ADA legal risk.
The Math of Color Contrast Ratios
Contrast is calculated as the relative luminance ratio between foreground text and background surface, ranging from 1:1 (no contrast) to 21:1 (pure black on pure white).
WCAG 1.4.3 Text Contrast Requirements
- Standard Body Text (< 24px regular or < 18.5px bold): Minimum 4.5:1 contrast ratio.
- Large Display Text (≥ 24px regular or ≥ 18.5px bold): Minimum 3:1 contrast ratio.
WCAG 1.4.11 Non-Text UI Contrast (3:1)
Active input borders, radio button outlines, and icons that convey essential information must maintain a minimum 3:1 contrast against adjacent backgrounds.
Audit Your Website for WCAG 2.2 Compliance Today
Scan your domain in 60 seconds with Rogabot and get instant PR-ready code diffs to prevent ADA lawsuit exposure.