Frequently Asked Questions
What is the minimum contrast ratio for WCAG AA compliance?
WCAG AA requires a minimum contrast ratio of 4.5:1 for normal body text (under 18pt or bold under 14pt) and 3:1 for large text (18pt and larger, or bold 14pt and larger) and non-text UI components.
How is the contrast ratio calculated?
The contrast ratio is calculated using relative luminance: (L1 + 0.05) / (L2 + 0.05), where L1 is the relative luminance of the lighter color and L2 is the relative luminance of the darker color, yielding values from 1:1 up to 21:1.
What is the WCAG Color Contrast Checker?
Free WCAG 2.1 color contrast checker. Test foreground & background colors for AA and AAA accessibility compliance across normal text, large text, and UI.
What can you use it for?
Use it to compare text and background colors before publishing a button, label, or paragraph and to explore alternatives that are easier to read.
How does it work?
Enter foreground and background colors. The page computes their luminance contrast ratio and compares it with the displayed WCAG thresholds while showing a text preview.
What problem does it solve?
Colors can look distinct to a designer yet remain unreadable for many people. The numerical ratio provides a clearer accessibility check than visual judgment alone.
Frequently asked questions
What does Contrast Ratio Checker do?
Free WCAG 2.1 color contrast checker. Test foreground & background colors for AA and AAA accessibility compliance across normal text, large text, and UI.
How do I use Contrast Ratio Checker?
Choose foreground and background colors or enter their color codes. Compare the displayed contrast ratio and accessibility results.