Color Contrast Checker

Check contrast between foreground and background and report WCAG AA and AAA thresholds.

Options

Processed on your device

How to use Color Contrast Checker

Compare a foreground and background color to see how the pair performs against WCAG text contrast thresholds. The output reports the contrast ratio and separate AA and AAA decisions for normal and large text.

  1. Enter the Foreground CSS color and Background CSS color as HEX, RGB, HSL or another supported format.
  2. Run Check contrast.
  3. Read the unambiguous Pass or Fail values in the result and compare the preview with the same colors in your actual design.

Example use

Check a normal body-text color on the site’s light background and again on its dark theme. If a brand accent only qualifies for large text, keep body copy in a higher-contrast color. Test hover, focus and other relevant color states separately.

Output and compatibility

AA text requires 4.5:1 for normal text and 3:1 for large text. AAA text thresholds are 7:1 and 4.5:1. Pass or Fail is calculated from the ratio before rounding for display. Translucent background colors in this tool are composited over white, followed by the foreground. Actual gradients, images or transparent layers require checking representative rendered colors. The report does not cover every accessibility criterion or visual state.

Troubleshooting

If the ratio appears to meet a threshold but a status fails, check the actual unrounded result through a slightly higher-contrast pair. If a CSS variable is rejected, enter the resolved color from the page. For text over an image, inspect the lowest-contrast areas rather than a convenient solid swatch.

Try Color Code Converter for equivalent code formats or Color Palette Generator to prepare candidate colors.

Frequently asked questions

What is large text for WCAG contrast?

WCAG uses 18 point type or 14 point bold or an equivalent size. Use the normal-text threshold when the element does not qualify.

Does this certify the entire page?

The tool checks the entered color pair against text thresholds. Inspect all relevant content and states to assess a page.

Is AA the same for normal and large text?

AA requires 4.5:1 for normal text and 3:1 for large text.

How is alpha handled?

The page blends the background over white and the foreground over that result.

What if I only know the colors in a screenshot?

Use Image Color Picker to sample representative pixels.

Can I check how the whole design looks with color-vision differences?

Use Color Blindness Simulator on a screenshot for a separate preview.

Find a tool