How can I check if my website text color has enough contrast?
Enter the opaque text and background HEX values. Check the exact ratio against WCAG normal and large text targets, then try a passing foreground if needed.
Runs in your browser. No file uploads for processing.
Check the WCAG text contrast ratio between two HEX colors. Preview normal and large text, see AA and AAA results, or try a passing foreground.
Loading tool...
Use two solid HEX values such as #767676 and #FFFFFF. You can type either a 3-digit or a 6-digit HEX color.
Normal text needs 4.5:1 for AA or 7:1 for AAA. Large text needs 3:1 for AA or 4.5:1 for AAA. Pass decisions use the unrounded ratio.
If normal text misses AA, try the suggested lighter or darker foreground and retest with your actual text and background.
The tool processes inputs in your browser. Account features and usage analytics are separate.
Enter the opaque text and background HEX values. Check the exact ratio against WCAG normal and large text targets, then try a passing foreground if needed.
#767676 text on white is about 4.54:1 and passes normal-text AA. #777777 on white is about 4.48:1 and fails normal-text AA.
Generally at least 18 point regular or 14 point bold, about 24 CSS pixels regular or 18.7 CSS pixels bold. The test does not measure your actual text.
No. A computed ratio of 4.499:1 does not reach 4.5:1, even if a shorter display would round it to 4.50.
No. It checks contrast for the specified text pair only. Other colors and states, keyboard navigation, labels, and other criteria require separate testing.