Check Color Contrast

Large heading text

Normal body text at 16px. Can you read this comfortably?

Button

7.57:1

  • Normal textAA passAAA pass
  • Large text (24px, or 19px bold)AA passAAA pass
  • Icons and input bordersAA pass

Make sure people can read your text. Enter a text color and a background color to get the WCAG contrast ratio and see whether it passes AA and AAA for normal text, large text and interface elements.

  • Free
  • Runs in your browser
  • WCAG 2 AA and AAA
  • No sign-up
How it works

How It Works

Test a color pair in three steps.

01

Enter two colors

Type HEX, rgb() or hsl() values, or use the pickers.

02

Look at the preview

Heading, body text and a button are drawn with your colors.

03

Read the results

The ratio and a pass or fail for each WCAG level.

About

What is a contrast ratio?

WCAG measures contrast as a ratio between the relative luminance of two colors, from 1:1 (identical) to 21:1 (black on white). Level AA, the target in most accessibility laws and policies, asks for at least 4.5:1 for normal text and 3:1 for large text and for icons and form borders. Level AAA asks for 7:1 and 4.5:1. Low contrast affects far more people than those with low vision: anyone reading a phone in sunlight benefits.

Passing the ratio does not guarantee readability. Very thin fonts and small sizes can still be hard to read, so check the preview too.

Exact WCAG formula

Uses the WCAG 2 relative luminance formula. The ratio is cut, not rounded, to two decimals, so 4.499 shows as 4.49 and fails.

Transparency handled

A semi-transparent text color is blended with the background first, as the reader sees it.

Large text rule

Large means at least 24px regular, or about 19px bold (18pt and 14pt in WCAG terms).

UI components

Icons, focus rings and input borders need 3:1 against what is next to them (WCAG 2.1, criterion 1.4.11).

Features

Why Use This Contrast Checker

Accessibility checks while you pick colors.

Live preview

See heading, body text and a button in your colors as you change them.

All WCAG levels

AA and AAA for normal text, large text and UI components at a glance.

Swap

Check light-on-dark and dark-on-light with one click.

Any color format

HEX, RGB, HSL, HSV and color names are all accepted.

✓ No Registration✓ Free✓ Browser-based✓ Text Stays Local
FAQ

Frequently Asked Questions

Questions people ask about the Contrast Checker.

For WCAG 2 level AA: 4.5:1 for normal text and 3:1 for large text and UI components. For level AAA: 7:1 for normal text and 4.5:1 for large text.