Quicker

WCAG Contrast Checker

Check the contrast ratio between text and background colors against WCAG 2.1 AA and AAA standards. Get instant pass/fail results with a live preview.

This tool is currently under development.

Share:B!

How to Use

  1. Enter text and background colors

    Use the color picker or type a hex code (#RRGGBB) for both text and background colors. Use the swap button to reverse them instantly.

  2. Check the contrast ratio

    The contrast ratio is calculated in real time. 21:1 is the maximum (black on white), and 1:1 is the minimum (same color on same color).

  3. Review the WCAG results

    Pass/fail results for AA and AAA levels are shown for normal text, large text, and UI components. The preview shows how your color combination actually looks.

FAQ

WCAG (Web Content Accessibility Guidelines) is an international web accessibility standard published by the W3C. It includes contrast ratio requirements to ensure that people with low vision or color blindness can read content on the web.

AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. AAA is stricter: 7:1 for normal text and 4.5:1 for large text. Most web projects aim for AA compliance as a minimum.

WCAG defines large text as 18pt (approximately 24px) or larger for regular weight, or 14pt (approximately 18.67px) or larger for bold text. Large text is easier to read, so a lower contrast ratio is acceptable.

UI elements like button borders, icons, and input field boundaries require a minimum contrast ratio of 3:1 against adjacent colors (WCAG 2.1 AA). This is a lower bar than for text, since these elements convey meaning through shape, not just color.