ToolHub

Color Contrast Checker

WCAG AA/AAA contrast ratio with live preview

Contrast ratio

17.06:1

Excellent

Large text sample

Normal body text looks like this. The quick brown fox jumps over the lazy dog.

Small text is the hardest to read at low contrast.

WCAG 2.1 compliance

AA — Normal text (≥ 4.5:1)Pass
AA — Large text (≥ 3:1)Pass
AAA — Normal text (≥ 7:1)Pass
AAA — Large text (≥ 4.5:1)Pass

Large text means 18pt+ (24px) regular, or 14pt+ (18.66px) bold. AA is the standard target for most websites; AAA is the strictest level.

Overview

What this tool checks

Enter a text color and a background color and instantly see the contrast ratio between them, plus whether the combination passes the WCAG accessibility standards (AA and AAA) for normal and large text. A live preview shows how the pairing actually looks. Everything runs in your browser.

The basics

What is contrast ratio?

Contrast ratio measures the difference in perceived brightness between two colors. It ranges from 1:1 (identical colors, no contrast) to 21:1 (pure black on pure white, maximum contrast). The higher the ratio, the easier text is to read.

It's calculated from each color's relative luminance using the WCAG formula: (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color's luminance and L2 is the darker color's.

What you need to pass

The WCAG thresholds

Normal textLarge text
AA (standard target)4.5:13:1
AAA (strictest)7:14.5:1

Most websites aim for AA, which is also the level referenced by accessibility laws like the ADA (US) and EN 301 549 (EU). AAA is the gold standard, recommended where readability is critical.

What counts as large text

Large text is 18pt or bigger (about 24px) at regular weight, or 14pt or bigger (about 18.66px) when bold. Because bigger letters are inherently easier to read, they're allowed a lower contrast threshold.

Accessibility + usability

Why contrast matters

Good contrast isn't just for compliance — it helps everyone:

  • People with low vision or color blindness rely on it to read at all
  • Aging eyes lose contrast sensitivity, affecting a huge share of users
  • Anyone using a phone in bright sunlight struggles with low-contrast text
  • Tired eyes and small screens make poor contrast harder for all users

Light gray text on a white background is the most common accessibility failure on the web. It looks elegant to designers on a high-quality monitor but is unreadable for many real users.

Practical advice

Tips for fixing low contrast

  • Darken the text or lighten the background until you hit at least 4.5:1
  • Don't rely on color alone to convey meaning — add icons or labels for color-blind users
  • Test your actual brand colors, not just black and white
  • For buttons and links, check the text against the button's background, not the page
  • Placeholder text and disabled states still need reasonable contrast

Behind the scenes

Privacy and how it runs

Runs in your browser

All contrast math happens locally. Nothing is sent anywhere.

Common questions

What is a good contrast ratio?

At least 4.5:1 for normal text and 3:1 for large text to meet WCAG AA. For the stricter AAA level, aim for 7:1 and 4.5:1 respectively. When in doubt, more contrast is more readable.

Does pure black on white pass?

Yes — it's the maximum at 21:1 and passes every level. But it can feel harsh; many designs use very dark gray (like #1a1a1a) on white, which still easily passes AA and AAA while being slightly softer.

Is gray text on white accessible?

It depends on the gray. Medium gray (#767676) on white is exactly 4.5:1 — the minimum for AA normal text. Lighter grays fail. Always check the specific value rather than assuming.

Do I need to meet AAA?

For most sites, AA is the practical and legal target. AAA is recommended for content where readability is essential (government, healthcare, education) but is hard to achieve for all design elements. Meeting AA reliably is the priority.

Does contrast apply to images of text?

Yes, text inside images should meet the same contrast ratios. Better still, use real text instead of images of text so it's also selectable, translatable, and scalable.

Related tools

Quick steps

1

Pick two colors

Set the text (foreground) and background colors with the color pickers or by typing hex codes.

2

Read the ratio

The contrast ratio appears instantly, from 1:1 (no contrast) to 21:1 (black on white).

3

Check the grades

See AA and AAA pass/fail for normal and large text, with a live preview of how the combination actually looks.

Frequently asked questions

What is a good contrast ratio?

WCAG requires at least 4.5:1 for normal text and 3:1 for large text to meet level AA, the standard most sites aim for. For the stricter AAA level, you need 7:1 for normal text and 4.5:1 for large text. Higher is always more readable.

What counts as 'large text'?

18pt and larger (about 24px) for regular weight, or 14pt and larger (about 18.66px) for bold. Large text has a lower contrast requirement because bigger letters are easier to read.

How is contrast ratio calculated?

It compares the relative luminance (perceived brightness) of the two colors using the WCAG formula: (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color and L2 is the darker. The result ranges from 1:1 to 21:1.

Why does contrast matter?

Low-contrast text is hard to read for everyone, and especially for people with low vision, color blindness, or aging eyes, or anyone using a screen in bright sunlight. Good contrast is a core accessibility requirement and improves usability for all users.

What is WCAG?

The Web Content Accessibility Guidelines, the international standard for making web content usable by people with disabilities. Many laws (ADA in the US, EN 301 549 in the EU) reference WCAG AA as the compliance target.

Does this work for any color format?

Enter colors as hex codes (3 or 6 digits, with or without the # sign) or use the color picker. The tool converts to RGB internally and computes the exact WCAG contrast ratio.