Color Contrast Checker for WCAG AA and AAA
For developers and designers making accessible buttons, text and themes. Enter a text and background colour to see a live preview, the contrast ratio and four WCAG pass or fail results.
Close the gaps with real-world projects
Build industry projects on ByteLabs and add verified proof of your skills to your public profile.
How to use the Color Contrast Checker
- Enter the text colour in Foreground as HEX (like #1E52E8) or rgb().
- Enter the Background colour the same way.
- Look at the live sample text preview.
- Read the contrast ratio and the AA and AAA results for normal and large text.
An example, step by step (example only)
You enter
Foreground #1E52E8 on Background #FFFFFF
The tool shows
Contrast ratio: 6.13 : 1 Normal AA (4.5): PASS Normal AAA (7): FAIL Large AA (3): PASS Large AAA (4.5): PASS
Questions about the Color Contrast Checker
What contrast ratio is needed for WCAG AA?
Normal text needs at least 4.5 to 1, and large text (about 24px, or 18.5px bold) needs at least 3 to 1. AAA raises these to 7 to 1 and 4.5 to 1.
Does grey #777777 on white pass accessibility checks?
Only for large text. It scores about 4.48 to 1, just under the 4.5 needed for normal text at AA.
Can I enter colour names like red or navy?
No. Use 3- or 6-digit HEX, with or without the hash, or rgb() and rgba() values. Alpha transparency is ignored.
Is the Color Contrast Checker free and private?
Yes. It is free, needs no sign-up and runs entirely in your browser, so what you type is not uploaded. You only sign in if you want to email a result to yourself or save it to your CareerByteCode profile.