Color Contrast Checker
This tool checks the contrast ratio between a text colour and a background colour. It tells you if the pair passes WCAG levels AA and AAA.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use Color Contrast Checker online
- Type the text colour. Hex, rgb, hsl or a basic name.
- Type the background. In the same ways.
- Read the ratio. See the number and the pass or fail lines.
- Adjust. Change a colour until it passes.
Why use this free Color Contrast Checker
- Contrast ratio
- AA and AAA for text
- Large text and controls
- Colour names accepted
- Hex of each colour
- Share by link
Why contrast matters
Text is hard to read when it has too little contrast with its background, especially for people with low vision, in bright light or on a poor screen. The Web Content Accessibility Guidelines (WCAG) set minimum contrast ratios. Meeting them makes your pages easier for everyone to read and is often required by law or policy.
The ratio and the levels
The contrast ratio runs from 1 to 1 for identical colours to 21 to 1 for black on white. WCAG level AA asks for at least 4.5 to 1 for normal text and 3 to 1 for large text and for the parts of controls and graphics. Level AAA asks for 7 to 1 for normal text and 4.5 to 1 for large text.
A worked example
Grey #767676 on white has a ratio of 4.54 : 1. That passes AA for normal text (Pass), and for large text (Pass), but it fails AAA for normal text (Fail). It is about the lightest grey that passes AA on white.
How it is calculated
The tool works out the relative luminance of each colour, a measure of how bright it appears, using the WCAG 2 formula. The ratio is the brighter luminance plus 0.05 divided by the darker luminance plus 0.05. Large text means 24 px or more, or 18.66 px or more if bold.
Limits
A passing ratio does not ensure that text is easy to read, since size, weight, font and spacing matter too. The ratio is also not defined for colours with transparency, so use opaque colours. Newer contrast methods are under discussion, but WCAG 2 is the one most rules refer to.
Using the tool
As you type in the Color Contrast Checker, the result appears at once. Find and replace is built into the editor with Ctrl+F and Ctrl+H.
Color Contrast Checker: frequently asked questions
What contrast ratio do I need?
What is large text?
Do buttons and icons need contrast?
Can I type colour names?
Why not use transparent colours?
Is the Color Contrast Checker private?
Can I chain the Color Contrast Checker with another tool?
Related searches for Color Contrast Checker
- Color Contrast Checker online
- free Color Contrast Checker
- Color Contrast Checker online free
- Color Contrast Checker for mobile
- Color Contrast Checker without sign up
- Color Contrast Checker – Text & Writing Tools
Color Contrast Checker is a free online tool on MAITBOX, in the Text & Writing Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.