Accessibility tools
Color Contrast Checker
Test foreground and background colors against WCAG 2.1 and 2.2. Adjust your colors, preview the result, and share the checks.
Contrast ratio
21.00:1WCAG 2.1 and 2.2 use the same contrast thresholds for these checks.
WCAG contrast results
| Content | Level AA | Level AAA |
|---|---|---|
| Normal text (1.4.3 / 1.4.6) | 4.5:1 | 7:1 |
| Large text (1.4.3 / 1.4.6) | 3:1 | 4.5:1 |
| UI and graphics (1.4.11) | 3:1 | Not applicable |
Pass/fail uses the unrounded ratio. Contrast alone does not establish WCAG conformance.
Live preview
Samples intentionally show the selected colors, even if they fail contrast.
The five boxing wizards jump quickly.
The five boxing wizards jump quickly.
The five boxing wizards jump quickly.
Suggested compliant colors
Keep your background and find a nearby foreground lightness that meets the target, or adjust opacity when needed.
About the calculation
Contrast is calculated using sRGB relative luminance. Transparent foreground colors are composited over the opaque background before evaluation. Large text means at least 24 CSS pixels regular or approximately 18.67 CSS pixels bold.
WCAG minimum contrast · Enhanced contrast · Non-text contrast
Calculations run locally in your browser. No color data is sent to a scanning service.