Skip to content
M2TOOLKIT

Contrast Checker (WCAG)

Check whether your text is readable against its background, by the WCAG accessibility standard.

  • Free
  • No sign-up
  • Runs in your browser

Large heading text

Normal body text looks like this. Can you read it comfortably?

Small print and captions are the hardest to read.

Contrast ratio

6.24 : 1

AA — normal text (4.5:1) Pass
AA — large text (3:1) Pass
AAA — normal text (7:1) Fail
AAA — large text (4.5:1) Pass
UI components & icons (3:1) Pass

“Large text” means at least 24px regular or about 19px bold (18pt / 14pt bold). Based on WCAG 2.2.

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us.

How to use the Contrast Checker (WCAG)

  1. Enter the text and background colors.
  2. Read the contrast ratio and pass/fail results.
  3. If it fails, apply the suggested accessible color.

What does this tool do?

WCAG (Web Content Accessibility Guidelines) defines minimum contrast so people with low vision or color-vision deficiencies — and anyone on a phone in bright sunlight — can read text. The ratio runs from 1:1 (no contrast) to 21:1 (black on white).

Level AA, the common legal and industry target, requires 4.5:1 for normal text and 3:1 for large text and interface components.

Why use it?

  • Meet accessibility requirements.
  • Make text readable for everyone.
  • Fix failing colors with one click.

Examples

Common color pairs:

Text on whiteRatioAA normal text
#000000 black21 : 1Pass
#5b616b gray6.2 : 1Pass
#767676 gray4.54 : 1Pass (just)
#999999 light gray2.85 : 1Fail
#2c48d6 blue6.99 : 1Pass

The formula

Ratio = (L1 + 0.05) ÷ (L2 + 0.05)
L = relative luminance of the lighter (L1) and darker (L2) color

Privacy

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.

Last reviewed by the M2Toolkit team.

Helpful guides

Other tools people use alongside the contrast checker (wcag).