Skip to content
ZeroKit

Contrast Checker

FreeNew

Check any pair against WCAG AA and AAA.

The contrast checker computes the WCAG 2.1 contrast ratio between a text colour and its background, then tests it against the AA and AAA thresholds for normal and large text. Everything is calculated locally, so no palette ever leaves your browser.

What is Contrast Checker?

Check colour contrast for WCAG 2.1 AA and AAA. Enter two colours to get the exact contrast ratio, pass or fail results and a fix suggestion. Works offline.

  • Nothing is uploaded
  • Works offline
  • No account required
Loading tool…
Contrast Checker running in a browser — Check any text and background pair against WCAG AA and AAA.
Screenshot of Contrast Checker — it runs entirely in your browser, so no file ever leaves your device.
Runs 100% in your browser — nothing is uploaded.·Color tools

How to use Contrast Checker

  1. 1Enter a foreground and a background colour with the pickers, or paste a hex code.
  2. 2Read the contrast ratio and the four WCAG AA and AAA pass or fail results.
  3. 3Compare the large and normal text previews to judge the pair in context.
  4. 4If a pair fails, apply the suggested darkening or lightening, or swap the two colours.

Page updated 2026-11-30 · maintained by the ZeroKit team · About

When to use it

  • Checking a text/background pair against WCAG AA (4.5:1) or AAA (7:1).
  • Confirming that a hover or muted state still passes.
  • Documenting why a colour was rejected in review.

When not to use it

  • Judging non-text contrast, such as icons or borders, where other thresholds apply.
  • Assuming compliance overall — a ratio is one criterion out of many.

Contrast Checker FAQ

What contrast ratio do I need?

WCAG AA asks for 4.5:1 for normal text and 3:1 for large text; AAA asks for 7:1 and 4.5:1. Interactive UI components and meaningful graphics need at least 3:1 against their surroundings.

How is the contrast ratio calculated?

Each colour is converted to relative luminance with the WCAG formula, then the ratio is (lighter + 0.05) / (darker + 0.05). It runs from 1:1 for identical colours up to 21:1 for black on white and ignores hue entirely.

What counts as large text?

At least 18.66px (14pt) when bold, or 24px (18pt) at regular weight. Anything smaller is normal text and has to meet the stricter 4.5:1 threshold under AA.

Does a passing ratio guarantee accessible text?

No, it only covers colour contrast. Readability also depends on font size and weight, letter spacing, background images, glare and colour-vision deficiencies, so test real screens too.

  • WCAG contrast ratio — The WCAG contrast ratio compares the relative luminance of text and its background on a sc…

Using Contrast Checker a lot?

Pro removes every ad, raises file limits and adds batch mode plus saved presets across all tools.

Compare plans →

Related tools