⚔️ WCAG Color Contrast Checker

Check foreground and background color contrast against WCAG 2.1 accessibility standards. Real-time results, color suggestions, and common presets.

Last updated: November 8, 2026 · By the BoltQuickTools team

Large Text Preview (18pt bold / 14pt)
Normal text preview. The quick brown fox jumps over the lazy dog. This sample text demonstrates how your chosen foreground color appears against the background at normal reading sizes. Aim for at least a 4.5:1 contrast ratio for body text.
12.63:1
Contrast Ratio

Testing whether text is readable on its background

Gray text on a white card can look fine on your monitor and still fail an accessibility audit. Enter the two colors here to get the WCAG 2.x contrast ratio and a pass or fail for each text size and level.

Checking a pair

  1. Set Foreground (Text) and Background with the color squares or by typing a six-digit hex value. Results update as you type.
  2. Use the arrow button between them to swap the two colors.
  3. Read the Contrast Ratio and the five badges below it.
  4. Pick an entry under Common Color Pairs to load a known combination.
  5. If Suggested Colors to Pass WCAG appears, click a suggestion to apply it as the foreground.

Two pairs compared

Check#9CA3AF on #FFFFFF#2563EB on #FFFFFF
Contrast Ratio2.54:15.17:1
AA Normal Text (4.5:1)FailPass
AA Large Text (3:1)FailPass
AAA Normal Text (7:1)FailFail
AAA Large Text (4.5:1)FailPass
AA UI Components (3:1)FailPass

For the gray, which is the Gray / White preset, the tool suggests #6D7788 at 4.52:1 for AA and #525966 at 7.05:1 for AAA. Both keep the same hue and saturation and only change lightness.

Where the tool's answer needs care

When the badges raise questions

Why is there no lighter suggestion for my gray text?

A chip appears only when some lightness of that hue reaches the target. Against pure white, nothing lighter than the current gray can reach 4.5:1, so only darker options are listed. On a mid-tone background you may get options in both directions, or no AAA option at all.

Why do AA Large Text and AA UI Components always match?

Both use the same 3:1 threshold. They are separate rules in WCAG: one covers large text, the other covers things like input borders and icons. A pass here only tells you the two colors meet the ratio. You still have to apply it to the right edges, such as the border of a field against the page behind it.

Does passing contrast cover color blindness?

No. Contrast measures relative brightness. Two colors can pass and still be hard to tell apart when a status relies on hue alone. Check that separately with the color blindness simulator, and read designing for color vision differences.

Where can I get HSL or CMYK for the result?

This page shows RGB and HSL under each input. For HSV, CMYK and copy buttons, use the color picker.