Colour Contrast Checker
Check text and background colours against WCAG AA and AAA.
Large text, 24 px bold
Normal body text at 16 px, the size most of a page is set in.
- Normal text WCAG AA, 4.5:1 Pass
- Normal text WCAG AAA, 7:1 Fail
- Large text WCAG AA, 3:1 Pass
- Large text WCAG AAA, 4.5:1 Pass
- Icons and UI parts WCAG AA, 3:1 Pass
Runs on this deviceSent to a server: 0 bytes
How it works
- Type, paste or pick what you're working with.
- Set the options you need.
- Copy or download the result. It's made on this device.
Checks whether text will be readable on its background by measuring the contrast ratio between the two colours, and tells you which WCAG accessibility levels the pair passes — for body text, large text and interface elements.
The WCAG formula
Each colour's relative luminance is worked out from its red, green and blue channels, after undoing the sRGB gamma curve and weighting green most and blue least, as the eye does. The ratio is (lighter + 0.05) ÷ (darker + 0.05), from 1:1 for identical colours to 21:1 for black on white. WCAG AA asks for 4.5:1 for normal text and 3:1 for large text and UI parts; AAA asks for 7:1 and 4.5:1.
Worked example
#767676 grey on white is 4.54:1 and passes AA for normal text. One step lighter, #777777, is 4.47:1 and fails — the ratio is compared without rounding up, so “nearly 4.5” is not enough.
Passing is the floor, not the goal
The ratio says nothing about font weight, size on a phone, glare, or colour blindness: red text on green can pass and still be unreadable to someone who cannot tell the two apart. Large text means at least 24 px, or 18.66 px bold. Treat AA as the minimum and check thin or small type by eye as well.
Questions
Is Colour Contrast Checker free to use?
Yes. Colour Contrast Checker is completely free, with no account, no sign-up and no usage limits.
Are my files or data uploaded anywhere?
No. Colour Contrast Checker runs entirely in your browser. Your files, text and numbers are processed on your own device and are never uploaded to a server.
Does Colour Contrast Checker work offline?
Yes, once you have opened it. NWS Kit installs as a Progressive Web App and keeps working with no connection. Video and audio tools download their engine (about 32 MB, from nwskit.com) the first time one is used; save the Video and audio pack to have it ready offline.
Do I need to install any software?
No installation is required. Colour Contrast Checker works in any modern browser on desktop or mobile.