The quick answer

Contrast is one ratio: (L1 + 0.05) ÷ (L2 + 0.05), where L is WCAG relative luminance. AA requires 4.5:1 for normal text (3:1 for large text) and AAA requires 7:1; black on white is 21:1. The checker computes your exact pair live in your browser — nothing uploads.

What the WCAG Contrast Checker is for

One job defines the WCAG Contrast Checker: the exact WCAG contrast ratio for any text-background pair, with the AA and AAA verdicts attached. It does that job instantly, entirely in your browser, with no signup and no upload — you arrive, and black-on-white's 21:1 is already computed as the worked example.

Contrast failures are invisible to the people causing them: the designer has working eyes, a calibrated monitor and total familiarity with the content. The WCAG Contrast Checker replaces that blind spot with arithmetic — the exact Web Content Accessibility Guidelines ratio for any color pair, computed entirely in your browser, with nothing uploaded.

The standard behind the numbers is public and stable: WCAG 2.1, published by the W3C, defines both the luminance formula and the AA/AAA thresholds, and they have not drifted since 2008. That stability is what makes a contrast checker trustworthy in a way few quality metrics are — the target is written down, and the arithmetic reaches it deterministically.

Below the controls: the complete contrast checker reference — usage, methodology, worked examples, accuracy caveats, and the questions people actually search for, answered without filler.

What the WCAG Contrast Checker does — and what it does not do

The WCAG Contrast Checker is a utility, running entirely in your browser, for computing WCAG contrast ratios and pass/fail verdicts for any color pair. “Browser-based” is the important part: the computation runs on your machine using JavaScript, which means your data is never uploaded to a server, never stored, and never seen by anyone but you. That is a structural guarantee, not a policy promise — there is simply no network request to intercept.

The day-to-day usage could not be simpler: pick the foreground, pick the background, and the ratio, the WCAG grade and the verdict list update instantly — there is no “calculate” button waiting to be pressed and no page reload between input and answer. When you are done, close the tab and everything you entered is gone.

The WCAG Contrast Checker belongs to our unit converters & practical utilities collection, and it pairs naturally with the Color Converter (HEX/RGB/HSL), the Color Palette Generator and the Random Color Generator — tools built to chain together in real workflows rather than live as isolated one-offs.

Using the WCAG Contrast Checker: the walkthrough

Here is the complete workflow for the contrast checker — the page opens with black on white already graded at the maximum 21:1, so a worked result is on screen before you touch anything.

  1. Pick the foreground color

    The Text (foreground) picker opens on black (#000000) — click it to choose the color doing the reading work; the browser's color dialog accepts a hex code if you have one, and the hex sits beside the picker.

  2. Pick the background color

    The Background picker opens on white (#FFFFFF) — the pair is what matters, never a color alone, and black on white starts you at the maximum 21:1.

  3. Read the ratio and the grade

    Two result cards update instantly: the exact (L1 + 0.05) ÷ (L2 + 0.05) ratio, and the WCAG grade — AAA ✓, AA ✓, AA large only or Fail ✗.

  4. Check the four thresholds

    The verdict list under the cards marks each line ✓ or ✗: AA normal text (≥4.5:1), AA large text (≥3:1), AAA normal text (≥7:1) and AAA large text (≥4.5:1).

  5. Use the Swap colors button

    One click exchanges foreground and background — the ratio is unchanged, but the flipped pair is what dark-mode checks need.

  6. Judge the live preview

    The right panel renders your pair at three text sizes — 24px bold heading, 16px body, 12px small — plus a button using the swapped pair; readability, not just the number, decides.

That is the entire workflow. Because every intermediate result is visible and the contrast checker documents its own method below, you never have to trust a black box — you can check the working at any point.

The contrast formula, exactly

The method is the WCAG 2.1 definition, no shortcuts. Each color's relative luminance is L = 0.2126 R + 0.7152 G + 0.0722 B, where each channel is linearized (c ÷ 12.92 for small values, otherwise ((c + 0.055) ÷ 1.055)^2.4). The ratio is then (L1 + 0.05) ÷ (L2 + 0.05) with L1 the lighter color — which is why the maximum possible ratio is 1.05 ÷ 0.05 = 21:1, black on white. Worked example: #767676 on white works out to 4.54:1, just over the AA threshold, while #777777 lands at 4.47:1 and fails by a hair — the boundary really is that sharp.

Who actually checks contrast

Contrast checking does different work in different hands. These five profiles cover the jobs the tool most often serves.

Web designers and developers — every text-on-background and icon-on-surface pair needs a verdict before shipping; AA is 4.5:1 for normal text and 3:1 for large text (24 px, or about 19 px bold), and the tool calls each pair against both thresholds instantly.

Accessibility auditors and consultants — remediation reports need the exact ratio, not an eyeball claim; a checker that shows the formula makes every number in the report defensible.

Writers and bloggers on themed platforms — the CMS theme chose its palette years ago, but your highlighted quotes and colored buttons are yours; a 30-second check catches the gray-on-gray failures that theme never tested.

Marketing teams — brand colors on landing pages are a legal surface, not just a design one: thousands of web-accessibility lawsuits and demand letters are filed in the US every year, and low-contrast text is a standard finding in them.

App developers — mobile platform guidelines point at the same WCAG thresholds, and dark-mode palettes double the pair count; checking both themes before release is the difference between a review note and a fix sprint.

Productive impatience is a legitimate design target: the scenario wanted output, not engagement. WCAG Contrast Checker obliges by getting out of the way.

Why 4.5:1 is the number it is

The thresholds are not aesthetic preferences — they trace to empirical legibility research on low-vision reading that W3C distilled into WCAG. The 4.5:1 AA figure was chosen to accommodate roughly 20/40 vision (a common threshold for age-related low vision), and the 3:1 large-text relaxation reflects that bigger strokes tolerate less contrast; the 7:1 AAA level reaches further toward severe vision loss. A ratio is thus a proxy for human eyes, which is also why it is a floor, not a target.

  • Large text gets the relaxed 3:1 AA threshold: at least 24 px regular, or about 19 px (14 pt) bold — the size, not the label, decides which row of the standard applies.
  • UI components and meaningful graphics have their own AA requirement (3:1 against adjacent colors), so icons, input borders and focus indicators are contrast-checked too, not just text.

A final practical note on getting the most from the contrast checker: the biggest productivity gains rarely come from a single tool, but from removing the cumulative friction of small tasks — each signup skipped, each upload avoided, each black-box result replaced with a documented method. Tools like this one, used habitually, are how that friction stays removed.

Honest limits: what a ratio cannot tell you

The caveats below are not disclaimers bolted on — they are part of the answer. Here are the contrast checker's accuracy guarantees — and its documented boundaries.

The honest boundary: the ratio is exact arithmetic about a proxy. It does not model color-vision differences directly, it says nothing about text size beyond the large-text split, and it cannot judge whether your placeholder text is meaningful — the ratio clears 4.5:1 while the label still confuses everyone. WCAG passes are necessary, not sufficient.

  • A passing ratio does not guarantee readability — letter spacing, font weight, size and motion all matter; contrast is one factor among several.
  • The formula uses sRGB — colors in other spaces (print CMYK, wide-gamut displays) must be converted before the ratio means anything.
  • Automated scans catch only a minority of WCAG criteria — contrast is the most machine-checkable one; most others need human judgment.

That discipline runs throughout WCAG Contrast Checker's documentation: exact where a documented formula applies, honestly estimated where averages or conventions enter, and never the one dressed as the other.

Security and privacy notes

This matters beyond principle: brand palettes under audit are pre-release material — exactly the category that should never cross an unnecessary network boundary. Local processing is not a feature here; it is the architecture.

WCAG Contrast Checker versus the alternatives

You have options for contrast checker-style work. Here is how the mainstream alternatives stack up — including where they legitimately win.

AlternativeWhere it winsWhere this tool wins
WebAIM Contrast CheckerThe WCAG community standard: ratio, pass levels and a preview, trusted for over a decadeThe same formula plus the WCAG grade card, the four-threshold verdict list and the swapped-pair button preview — one screen, no scrolling
Browser devtools contrast pickersConvenient during debugging: they inspect the exact element on screenCheck any hypothetical pair before it ships, not just the current DOM
Full accessibility scannersThey cover dozens of WCAG criteria and belong in CIFor the one criterion everyone trips on, this checker answers in seconds without a full audit run
Eyeballing itFree and instant; catches gross failures like yellow on whiteExact arithmetic at the boundary — #777777 on white looks fine and fails at 4.47:1, one gray step from passing

That comparison is a menu, not a ranking: the big tools sell depth for a setup fee in time; WCAG Contrast Checker sells immediacy and charges nothing, in money or signup.

When a verdict surprises you

Five small habits turn a one-off tool into part of a routine. These tips are the accumulated playbook for the contrast checker specifically.

  • Design against AAA (7:1) for body text where you can — it costs little early and ages well as palettes drift.
  • Check the dark theme separately: the same brand accent can pass on white and fail on near-black; each pair is its own verdict.

When something behaves unexpectedly, the causes are almost always one of these:

  • The ratio fails by a hair — one lightness step usually fixes it: #777777 fails at 4.47:1 on white, #767676 passes at 4.54:1.
  • It passes but still looks unreadable — contrast is not typography: raise size or weight, or check the font, before blaming the colors.
  • An image sits behind the text — the checker evaluates solid pairs; overlay a scrim or sample the darkest/lightest region and check that pair instead.

If something still does not behave, the contact page reaches the engineers directly — most WCAG Contrast Checker bug reports ship a fix inside a week.

Frequently asked questions

These are the questions people actually search about the contrast checker, answered directly. If yours is missing, the contact page takes feature and question requests.

Does the WCAG Contrast Checker work on mobile?

Mobile is the primary target, not an afterthought: WCAG Contrast Checker's controls, spacing and keyboard behaviour were tuned for phones, then scaled up. Any current browser works.

Do you store what I enter into the WCAG Contrast Checker?

The processing behind WCAG Contrast Checker is local JavaScript, so the honest answer is no — your inputs are never sent anywhere. The network inspector confirms it in about thirty seconds if you want proof rather than prose.

Is the WCAG Contrast Checker free to use?

Free to use, unlimited: no account to create and no email to hand over. WCAG Contrast Checker runs entirely in your browser, so each extra use costs this site nothing and costs you nothing either. Check as many color pairs as the job requires.

Are WCAG Contrast Checker's outputs verifiable?

Yes, by construction: the checker implements the published WCAG 2.1 formula — relative luminance L = 0.2126 R + 0.7152 G + 0.0722 B with linearized channels, then the ratio (L1 + 0.05) ÷ (L2 + 0.05). Hand-check any result with those two steps and a calculator; the boundary cases (like #767676 at 4.54:1 on white) are famous precisely because they are reproducible.

Color tools that pair well with this one

These tools share the WCAG Contrast Checker's workflow most often — the internal links exist because people genuinely chain them, not for keyword decoration.

  • Color Converter — get colors into HEX before checking; the converter shows the notation arithmetic.
  • Color Palette Generator — build harmonies first, then verify every text pair here before shipping.
  • Random Color Generator — draw candidates, then check their contrast before they earn a place.
  • Gradient Generator — gradients behind text need a checked solid equivalent; sample the worst-case stop and verify it here.

Where that leaves your next color pair

The WCAG Contrast Checker does one thing with no strings: the exact WCAG 2.1 ratio for any color pair, with the formula shown and the AA/AAA verdicts for normal and large text, entirely client-side. No signup, no upload — the arithmetic is on this page, and your color pair never leaves your device.

Use WCAG Contrast Checker hard, stress it with your worst contrast checker inputs, and report where it bends — the roadmap grows from exactly those reports.

Sources and further reading

We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.