Muhammed Ahmed Tools

Contrast Checker

Measure the contrast ratio between a text color and a background color and see whether it passes WCAG AA and AAA. Get a suggestion when it fails.

This tool runs in your browser: your files and text never leave your device and are not uploaded anywhere.

How to use

  1. Pick the text and background colors or type their HEX codes.
  2. The ratio and the AA / AAA results update right away.
  3. If the ratio is low, apply the suggested color with one tap.

Frequently asked

Which ratio is enough?

WCAG requires at least 4.5:1 for normal text and at least 3:1 for large text and interface components. The AAA level asks for 7:1.

What counts as large text?

Regular text of about 24 pixels and above, or bold text of about 19 pixels and above, counts as large text.

Related tools

All tools