WebAIM Contrast Checker
Check whether text colors have enough contrast against a background.
WebAIM · Creative browser project · Public browser tool · Browser
Check two colors
WebAIM · Image credits and license
How to try it
- Set black as the foreground and white as the background.
- Read the contrast ratio and the separate pass or fail checks for text.
Browser check: Entered black foreground and white background. With black foreground and white background, the checker returned a 21:1 contrast ratio.