Free tool

Runs in your browser

Contrast Checker

Check a text color on a background against WCAG 2.2. If it fails, see the closest colors that pass and choose one.

What it checks

Enter a text color and a background color. The checker gives the WCAG 2.2 contrast ratio and says which levels the pair passes: AA for normal text (4.5:1), AA for large text (3:1), AAA (7:1, or 4.5:1 for large text), and 3:1 for interface parts such as borders, icons, and focus rings. The ratio is cut to two decimals and never rounded up, so 4.49:1 fails where 4.5:1 is required. The APCA value is shown beside it for information only.

How to use it

  1. Type or paste the two colors. Hex, rgb, hsl, oklch, lab, and CSS color names all work.
  2. Choose what the pair is for: normal text, large text, or interface parts.
  3. If the pair fails, pick one of the suggested colors, or press Undo to go back.

How the fixes are found

The checker keeps the hue of the color it changes and moves only its lightness, darker and lighter, until the pair reaches the exact level on the final 8-bit colors your screen shows. The suggestions are sorted by how little they change your color, and nothing changes until you choose one. The link button copies the pair, so a teammate opens the same check.

Related: contrast pages for common pairs · Color Converter

Questions

What ratio do I need?

4.5:1 for normal text, 3:1 for large text and for buttons, icons, and input borders.

Does passing mean my page is accessible?

No. ColorLint checks color contrast only.

Is my color data sent anywhere?

No. The check runs in your browser.

Private by design

Your code never leaves your browser. Colors you type here stay on your device.

Results use the same color engine as the builder, judged on the final 8-bit colors, with WCAG 2.2 deciding pass or fail.