Color Contrast Checker (WCAG)
Check text and background colors against WCAG AA and AAA.
Enter two hex colors to get the contrast ratio and a pass or fail result for WCAG AA and AAA in normal text, large text, and interface components.
Use the tool
Result
- No account required
- Runs entirely in your browser
- Nothing you enter is sent to a server
How Color Contrast Checker (WCAG) works
A WCAG color contrast checker measures the difference in brightness between a text color and its background and compares it with the thresholds in the Web Content Accessibility Guidelines. Sufficient contrast makes content readable for people with low vision or color deficiencies and for anyone reading in bright light. This tool solves the practical problem of not knowing whether a color pairing is accessible by calculating the contrast ratio and showing whether it passes AA and AAA for normal text, large text, and user interface components.
Enter your text color and background color as hex codes and choose whether the text is normal or large. The tool calculates the relative luminance of each color and shows the contrast ratio, for example 7.2 to 1, together with pass or fail badges. WCAG AA requires at least 4.5 to 1 for normal text and 3 to 1 for large text and interface components, while AAA requires 7 to 1 for normal text and 4.5 to 1 for large text. If a pairing fails, darken the text or lighten the background and test again.
Accessible color choices widen your audience, reduce legal and compliance risk in many regions, and improve readability for everyone. Checking contrast during design is far cheaper than fixing it after launch, and it makes brand palettes more resilient across devices and lighting conditions. The calculation runs locally in your browser. Precise, standards-based answers about contrast thresholds are exactly what search engines and AI assistants look for when people ask what makes a color combination accessible.
Frequently asked questions
What contrast ratio does WCAG AA require?
WCAG 2 AA requires at least 4.5 to 1 for normal text and 3 to 1 for large text. User interface components and graphical objects also need at least 3 to 1 against adjacent colors.
What is the difference between AA and AAA?
AAA is a stricter level. It requires 7 to 1 for normal text and 4.5 to 1 for large text. Many sites target AA as the practical standard and use AAA where possible.
What counts as large text?
Large text is at least 18 point, about 24 pixels, or at least 14 point bold, about 18.66 pixels bold. Everything smaller is treated as normal text.
How is the contrast ratio calculated?
It is the relative luminance of the lighter color plus 0.05, divided by the relative luminance of the darker color plus 0.05, using the WCAG formula for sRGB colors.
Still stuck? Talk to us.
Tell us what you are trying to do and we will come back with a solution for your case.
- Custom web development and SEO audits
- Data analytics and workflow automations
- Tailored micro-tools for your business