Accessibility

Check whether two colors have enough contrast.

Compare a foreground and background pair against the WCAG 2.2 contrast thresholds for text and required visual information. This checks the colors you enter—not an entire page, component state, or accessibility conformance.

  • Free to use
  • Runs in your browser
  • Source-linked WCAG thresholds

Choose the colors

Set a foreground and background.

Color pair
Text or required visual

Enter a solid 3- or 6-digit hex color.

Adjacent solid backdrop

Use the color directly behind the text, control, or graphic.

This calculation runs in your browser. The colors you enter are not submitted.

Review the result

Contrast results

WCAG 2.2

Contrast 5.96 to 1. Meets AA for normal text.

Contrast ratio5.96:1

Meets AA for normal text and AAA for large text.

Visual preview

Large text sample

Normal text can look readable while still missing a numeric threshold.

Required visual boundary
  • Normal textWCAG 2.2 Level AANeeds 4.5:1Meets
  • Normal textWCAG 2.2 Level AAANeeds 7:1Does not meet
  • Large textWCAG 2.2 Level AANeeds 3:1Meets
  • Large textWCAG 2.2 Level AAANeeds 4.5:1Meets
  • Required UI visuals and graphicsWCAG 2.2 Level AANeeds 3:1Meets

How to read the result

A ratio answers one specific question.

WCAG calculates contrast from the relative luminance of two adjacent colors. Plainview Tools uses the official sRGB formula and the unrounded ratio for every pass or fail decision. A displayed value near a threshold never gets rounded into a passing result.

UseAAAAA
Normal text4.5:17:1
Large text3:14.5:1
Required UI visuals and meaningful graphics3:1Not defined

WCAG treats text as large at 18pt, or 14pt bold—roughly 24 CSS pixels regular or 18.7 CSS pixels when bold. The 3:1 non-text threshold applies only to visual information needed to identify controls, states, or meaningful graphics against adjacent colors.

Check the real context too.

Passing these numbers does not certify WCAG conformance. This tool checks opaque solid sRGB colors only; it does not evaluate transparency, gradients, images, blend modes, typography, adjacent colors, or every interactive state. Thin or unusual type can also appear fainter because of anti-aliasing, so aim above the minimum when practical.

Primary sources

Thresholds you can verify.

Reviewed August 21, 2026. Links open the current W3C WCAG 2.2 criteria used by this checker.