Color Contrast Checker
Enter a text colour and a background colour to get the WCAG contrast ratio, pass or fail for AA and AAA, a live preview — and a nearby colour that passes if yours does not.
How to use the Color Contrast Checker
- Pick or type the text colour and the background colour (hex codes such as #767676).
- Read the contrast ratio and the pass or fail result for each WCAG level.
- If it fails, press Suggest a passing text colour to get the closest colour that meets AA.
About the Color Contrast Checker
Low-contrast text is one of the most common accessibility failures on the web and makes content hard to read for people with low vision, older users and anyone using a phone in sunlight. WCAG 2.2 sets minimum contrast ratios: 4.5:1 for normal text and 3:1 for large text and interface elements at level AA, rising to 7:1 and 4.5:1 for AAA. The ratio compares the relative luminance of the two colours, from 1:1 (identical) to 21:1 (black on white). Many accessibility laws, including the European Accessibility Act and the ADA in the United States, point to these criteria.
Frequently asked questions
What contrast ratio do I need?
For WCAG AA, at least 4.5:1 for normal text and 3:1 for large text (18pt, or 14pt bold) and for buttons, icons and form borders.
What counts as large text?
At least 18 point (24 px) regular or 14 point (about 18.7 px) bold.
Is #767676 on white accessible?
Yes, just — it is about 4.54:1, the lightest grey that passes AA on white.
Does the checker handle transparency?
Use solid colours. For semi-transparent text, check the colour you actually see once it is blended with the background.
Related free tools
- Regex Tester — Test regular expressions with live match highlighting.
- Unix Timestamp Converter — Timestamp ⇄ human-readable date.
- Markdown Preview — Live preview of headings, bold, lists, links & code.
- CSV ⇄ JSON — Convert CSV data to JSON and back.
- HTML Viewer & Tester — Paste any HTML/CSS/JS and see the live output instantly.
- JWT Decoder — Read the header and payload of a JSON Web Token safely.
Runs in your browser — what you enter stays on your device. Published .