Skip to content
ColorPicker Studio

Color Contrast Checker (WCAG 2.2)

Test whether your text is readable for everyone. Enter a text and background color to get the WCAG contrast ratio, pass/fail results and nearby colors that meet AA or AAA.

Contrast ratio

13.98:1

Excellent
  • Normal text AA≥ 4.5:1 Pass
  • Normal text AAA≥ 7:1 Pass
  • Large text AA≥ 3:1 Pass
  • Large text AAA≥ 4.5:1 Pass
  • UI components & graphics AA≥ 3:1 Pass

Large text is at least 24px (18pt) regular or 18.66px (14pt) bold.

Large heading text (24px)

Large heading text (18.66px bold)

The quick brown fox jumps over the lazy dog. Readable text helps everyone, including people with low vision.

The quick brown fox jumps over the lazy dog. Readable text helps everyone, including people with low vision. (14px)

Get startedLearn more

Suggestions

Adjust text color

AA#1E293BAlready passes
AAA#1E293BAlready passes

Adjust background color

AA#F8FAFCAlready passes
AAA#F8FAFCAlready passes

How to check contrast

  1. 1Enter the text color and background color as HEX, RGB, HSL or a CSS name — or use the color swatches.
  2. 2Read the contrast ratio and the pass/fail results for normal text, large text and UI components.
  3. 3Check the live preview with real text sizes.
  4. 4If a check fails, apply one of the suggestions: the closest text or background color (same hue) that passes AA or AAA.

WCAG contrast requirements

Large text means at least 18 point (24 CSS px) regular or 14 point (about 18.66 CSS px) bold.

Success criterionLevelMinimum ratio
1.4.3 Contrast (Minimum) — normal textAA4.5:1
1.4.3 Contrast (Minimum) — large textAA3:1
1.4.6 Contrast (Enhanced) — normal textAAA7:1
1.4.6 Contrast (Enhanced) — large textAAA4.5:1
1.4.11 Non-text Contrast — icons, borders, focus ringsAA3:1

How the ratio is calculated

Each color is converted to linear light (removing the sRGB gamma curve) and its relative luminance is computed as L = 0.2126 R + 0.7152 G + 0.0722 B. The ratio is (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color. Results range from 1:1 (identical colors) to 21:1 (black on white).

WCAG specifies that ratios must not be rounded up, so a ratio of 4.499 does not pass 4.5:1. This checker truncates the displayed value and evaluates the exact number.

If your text color is semi-transparent, it is blended over the background first, as the browser would render it.

Frequently asked questions

What contrast ratio do I need for WCAG AA?

4.5:1 for normal body text and 3:1 for large text (24px, or 18.66px bold) and for meaningful UI elements such as icons and input borders.

Is WCAG 2.2 different from 2.1 for contrast?

No. WCAG 2.2 keeps the same contrast criteria (1.4.3, 1.4.6 and 1.4.11) as WCAG 2.1. It adds other criteria, such as focus appearance and target size.

How are the suggested colors chosen?

The checker keeps the hue and saturation of your color and changes only the lightness, by the smallest amount needed to reach the target ratio. If no lightness value can reach it, it tells you so.

Does passing contrast guarantee accessibility?

Contrast is one important part. Also consider font size and weight, not relying on color alone to convey meaning, and how your design looks to people with color vision deficiencies.