WCAG Color Contrast Checker
Compare any foreground and background color pair against WCAG 2.1 AA and AAA thresholds for normal text, large text, and UI components.
Relative luminance: 0.0208
Relative luminance: 0.9557
| Category | Threshold | Status |
|---|
Normal body paragraph text at 16px regular weight. Good contrast ensures comfortable reading across high-glare screens and low-vision contexts.
About This Tool
The WCAG Color Contrast Checker computes the exact WCAG 2.1 contrast ratio (from 1:1 to 21:1) between any foreground and background color pair using the sRGB relative luminance formula.
Unlike single-color checkers that only test against pure white or pure black, this tool pairs any two custom colors via HEX, RGB channels, or native color pickers, evaluates normal text, large text, and UI component thresholds, and suggests the closest lightness adjustments when a pair fails.
Key Features
- Foreground & background pickers: Enter HEX codes, adjust individual R/G/B numeric channels, or use native color pickers with one-click swap.
- Exact WCAG 2.1 relative luminance: Applies the standard 0.04045 linear-transfer threshold and ITU-R BT.709 coefficients (0.2126 R, 0.7152 G, 0.0722 B).
- Five compliance badges: Checks Normal Text AA (4.5:1), Normal Text AAA (7.0:1), Large Text AA (3.0:1), Large Text AAA (4.5:1), and UI Components AA (3.0:1).
- Nearest passing color suggestions: Finds the smallest HSL lightness shift up or down that reaches 3.0:1, 4.5:1, or 7.0:1 against your background.