Check whether text and background colours meet WCAG AA contrast.
Color Contrast Ratio Checker
Find the WCAG contrast ratio between two colours, with AA/AAA pass marks.
- Free
- No sign-up
- Runs in your browser
Input
A hex colour like #FF0000 or #F00.
A hex colour like #FF0000 or #F00.
Fill in First colour and Second colour to continue.
Enter your input to see the result
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter two hex colours.
- 2
The result is the contrast ratio (1–21), with which WCAG levels it passes.
Questions about Color Contrast Ratio Checker
What ratio do I need?
WCAG 2.1 asks for at least 4.5:1 for normal text (AA), 3:1 for large text, and 7:1 for AAA normal text. The result marks each.
Is anything sent anywhere?
No. The conversion runs entirely in your browser; the colours never leave the page.
Does the Color Contrast Ratio Checker work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Color Contrast Ratio Checker keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the Color Contrast Ratio Checker uploaded or stored?
No. The Color Contrast Ratio Checker runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.
Can I use the Color Contrast Ratio Checker on a phone or tablet?
Yes. The page is responsive, so the Color Contrast Ratio Checker works the same in a mobile browser as on a desktop, and there is no app to install.
Related tools
Other tools you might reach for next.
Check whether text and background colours meet the stricter WCAG AAA contrast.
Convert a hex colour to RGB, with the colour in all common formats.
Convert an RGB colour to a hex code.
Convert a hex colour to HSL (hue, saturation, lightness).
Convert an HSL colour to a hex code.
Convert an RGB colour to HSL.
Convert an HSL colour to RGB.