What Is WCAG Color Contrast Checker?
A free online WCAG color contrast checker. Enter foreground and background colors to check compliance with WCAG 2.1 AA and AAA standards for normal and large text. Includes preset color pairs and a live preview.
Color contrast is one of the most overlooked aspects of web accessibility, yet it directly impacts whether millions of users can read your content. WCAG (Web Content Accessibility Guidelines) 2.1 defines specific contrast ratios for text and background colors to ensure readability for users with low vision, color blindness, or viewing conditions like bright sunlight. Color Contrast Checker measures any foreground/background color combination against these standards and tells you instantly whether it passes or fails.
Enter colors using the HEX color picker or type hex values directly. The tool calculates the contrast ratio — a number between 1:1 (no contrast) and 21:1 (maximum contrast, black on white). The result is compared against four WCAG thresholds: AA normal text (4.5:1), AA large text (3:1), AAA normal text (7:1), and AAA large text (4.5:1). Each threshold shows a clear pass or fail indicator, so you know exactly which standards your color pair meets.
A live preview panel shows sample text rendered with your chosen colors, giving you a visual check alongside the numeric analysis. This is important because some color combinations that pass mathematically may still look uncomfortable to read (or vice versa). Eight preset color pairs are included for common scenarios — dark mode, light mode, link colors, and warning badges — so you can test real-world combinations quickly.
The tool also handles edge cases. If the colors are too similar, the ratio drops below 3:1 and all checks fail — a strong signal that the pair is unusable for text. If you are testing for non-text elements like icons or form borders, the WCAG non-text contrast requirements are more lenient (3:1 minimum), which this checker can help you evaluate visually even though the primary thresholds target text.