Color Contrast Checker
Check the WCAG contrast ratio between a text and background color — see AA/AAA pass-fail grades for normal text, large text and UI components, with a live preview and accessible-color suggestions.
The quick brown fox
Large text reads comfortably when contrast is sufficient.
This is a sample paragraph of normal body text. Good color contrast keeps your content legible for everyone, including people with low vision or color blindness. a sample link.
Small print and captions are the hardest to read — they need the most contrast.Everything is computed live in your browser using the WCAG 2.x relative-luminance formula — no uploads, no sign-up, completely free.
About Color Contrast Checker
The Color Contrast Checker measures the WCAG contrast ratio between a text color and a background color, then grades the pair against the AA and AAA accessibility levels for normal text, large text and UI components. The ratio and every pass/fail verdict update live as you adjust either color.
A realistic preview panel renders headings, body copy, small print, a button and a link in your chosen combination, so you can judge legibility with real content instead of abstract swatches. When a pair fails, the tool suggests the closest accessible text color that reaches the AA threshold of 4.5:1, ready to apply with one click.
The math follows the WCAG 2.x relative-luminance formula and runs entirely in your browser — nothing is uploaded and the checks are free. You can also copy a compact text report of the ratio and grades to paste into an accessibility review or a pull request.
How to use Color Contrast Checker
- Set your text color and background color with the pickers or by typing values.
- Read the contrast ratio and the AA/AAA results for normal text, large text and UI components.
- Inspect the live preview to see real headings, paragraphs, buttons and links in your colors.
- If the pair fails, apply the suggested accessible text color or swap the two colors.
- Click "Copy report" to share the ratio and compliance results.