Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

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.

How to use Color Contrast Checker online

  1. Type the text colour. Hex, rgb, hsl or a basic name.
  2. Type the background. In the same ways.
  3. Read the ratio. See the number and the pass or fail lines.
  4. 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?
At least 4.5 to 1 for normal text and 3 to 1 for large text, at level AA.
What is large text?
24 px or more, or 18.66 px or more in bold.
Do buttons and icons need contrast?
Level AA asks for 3 to 1 for the parts of controls and graphics.
Can I type colour names?
Yes, basic names, hex, rgb() and hsl().
Why not use transparent colours?
The ratio depends on what is behind them.
Is the Color Contrast Checker private?
It stays in your browser tab; the Color Contrast Checker sends nothing anywhere.
Can I chain the Color Contrast Checker with another tool?
Press Use result as input and the Color Contrast Checker answer becomes the new input.

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.

More tools in Text & Writing Tools →

Search tools