WCAG Contrast Checker
Enter a text color and background color to get their exact contrast ratio and see whether it passes WCAG 2.x's AA and AAA thresholds for normal and large text — with a live preview of both sizes rendered in your chosen colors.
How to use
- Pick a text color and a background color (hex, or use the color pickers).
- The contrast ratio and pass/fail results for all 4 thresholds update instantly.
FAQ
What counts as "large text" under WCAG?
18pt (24px) regular text, or 14pt (18.66px) bold text, or larger — large text gets a more lenient contrast threshold since bigger glyphs stay legible at lower contrast.
What's the difference between AA and AAA?
AA is the standard legal/practical compliance level most sites target; AAA is a stricter, enhanced level not required by most accessibility regulations but recommended where extra readability really matters.
How is the ratio calculated?
Using the WCAG 2.x relative luminance formula on both colors' sRGB values, then comparing the lighter and darker luminance — the same formula browsers' own accessibility inspectors use.