WCAG Color Contrast Checker: AA & AAA Compliance Calculator
Check the color contrast ratio between text and background colors according to Web Content Accessibility Guidelines (WCAG) 2.1 AA and AAA.
About WCAG Color Contrast Checker: AA & AAA Compliance Calculator
The WCAG Color Contrast Checker evaluates foreground and background color combinations against Web Content Accessibility Guidelines (WCAG 2.1). Ensure your website typography, buttons, and badges meet Level AA and Level AAA accessibility standards for users with low vision or color blindness.
How to Use
- Select Foreground Color: Enter text hex code or pick a color with the color picker.
- Select Background Color: Enter container background hex code or choose a color.
- Review Contrast Ratio: Examine your calculated numerical ratio (from 1:1 to 21:1).
- Check Compliance Badges: Inspect instant Pass/Fail results across WCAG AA and AAA standards.
Key Capabilities & Features
- WCAG 2.1 Compliance Matrix: Automated pass/fail scoring for Normal Text, Large Text, and UI Components.
- Relative Luminance Analysis: Calculates exact optical luminance using ITU-R BT.709 formulas.
- Real-Time Preview Canvas: Preview sample typography in both light and dark contextual layouts.
- 100% In-Browser Privacy: No color palettes or design system tokens leave your local device.
Frequently Asked Questions
What is the WCAG 2.1 color contrast requirement? WCAG Level AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (18pt or 14pt bold). Level AAA requires 7:1 for normal text and 4.5:1 for large text.
How is the contrast ratio calculated? Contrast ratio is computed from relative luminance: `(L1 + 0.05) / (L2 + 0.05)`, where L1 is the lighter color and L2 is the darker color, ranging from 1:1 (lowest) to 21:1 (highest).
Does this tool test both text and graphical UI components? Yes, the diagnostic scorecard evaluates compliance for small body copy, large display headers, and graphical interface elements.
Is my website color palette logged or saved? No, all accessibility evaluations are calculated client-side in your browser with complete privacy.