← All tools

Color Contrast Checker

Check text and background contrast against WCAG AA and AAA, preview it, and get the closest Tailwind colors that pass. Free, in your browser.

1 · Colors

2 · Results

4.01: 1 contrast ratio
  • Normal textUnder 24px, or under 19px bold✕ AA✕ AAA
  • Large text24px and up, or 19px bold✓ AA✕ AAA
  • UI componentsIcons, borders, focus rings✓ AA

Preview

Large heading text

Body text at 15px. Good contrast keeps your interface readable in sunlight, on cheap screens and for people with low vision.

Outline buttonSmall 12px caption

Fix it

The closest colors that pass, keeping the same hue. Click one to use it.

Closest Tailwind colors that pass AA

Code

color: #7c7f87;
background-color: #ffffff;
/* contrast 4.01:1 */

About the Color Contrast Checker

Color Contrast Checker measures the contrast ratio between a text color and a background color and checks it against WCAG 2 for normal text, large text and UI components, at both AA and AAA.

When a pair fails, it suggests the closest passing colors that keep your hue, and lists the nearest Tailwind CSS colors that pass on your background.

When to use it

Use it when picking text, link, button and icon colors for a design system or a landing page, or when an accessibility audit flags low contrast.

More free tools

All tools →