WCAG Contrast Checker
Check color contrast for readability.
Input
📄local file
Output
Check readability with a numerical contrast ratio
Worked example
Enter the foreground and background HEX colors on separate lines. #000000 and #FFFFFF yield 21:1; #777777 and #FFFFFF yield about 4.48:1, just below the 4.5:1 AA normal-text threshold. Compare the unrounded ratio with the threshold rather than rounding it up.
What to check
WCAG AA uses 4.5:1 for normal text and 3:1 for large text; AAA normal text uses 7:1. Large text means at least 18 pt or 14 pt bold under the WCAG definition. This check assumes opaque colors. Gradients, transparency, focus indicators and overall accessibility require additional review.