Private browser utility / Color & Design

WCAG Contrast Checker

Runs entirely in your browser - no upload, no sign-up.

Live workspaceLocal processing
Screenshot contrast auditNo screenshot loaded

Share this tool
wcag contrast checker / browser utility
01 / Overview

What is a WCAG contrast checker?

A WCAG contrast checker compares the relative luminance of a foreground and background color, then tests the pair against accessibility thresholds. This version can sample both colors directly from a screenshot or accept exact hex values, so you can check finished mockups without uploading the image.

02

How to use

  1. 01
    Load the design

    Drop, paste, or choose a screenshot. You can also skip the image and enter two hex colors.

  2. 02
    Sample the pair

    Choose text or foreground, click the center of a solid stroke, then sample the adjacent background.

  3. 03
    Read the WCAG result

    Compare the exact ratio with AA and AAA thresholds for normal text, large text, and non-text elements.

  4. 04
    Record the finding

    Copy the audit report with both colors, the ratio, and every pass or fail result.

03

Who it's for

  • Product designers sampling text and surfaces from exported Figma or Sketch mockups.
  • Accessibility reviewers checking screenshots when source CSS values are not available.
  • Front-end developers verifying exact design-token pairs before implementation.
  • Content and marketing teams reviewing text placed over banners, cards, and graphics.

Upload, drop, or paste a screenshot and pick the two pixels that should be distinguishable. A magnified view helps you avoid anti-aliased edges. You can also type exact hex colors when checking design tokens. All image decoding and contrast math run locally in your browser.

The report covers WCAG 2.2 Level AA and AAA for normal and large text, plus the 3:1 Level AA threshold used for meaningful interface components and graphical objects. A passing color pair is one part of an accessibility review, not a guarantee that the whole design conforms.

FAQ

Are screenshots uploaded to CanDoYa?

No. The browser decodes the selected image and reads its pixels locally with Canvas. The screenshot, sampled colors, and audit report are not sent to CanDoYa. The tool also works with pasted clipboard images, so you do not need to save a temporary file first.

Is the WCAG contrast checker free?

Yes. The checker is free to use without an account or a usage limit. You can test exact hex colors, load screenshots, sample as many pairs as needed, and copy each audit report directly from the browser.

What image limits does the checker have?

It accepts PNG, JPEG, WebP, GIF, and AVIF images up to 20 MB and 32 megapixels. Very large screenshots use substantial browser memory, so resize them first. The checker reads the first displayed frame of an animated image.

What contrast ratio passes WCAG 2.2 AA?

Normal text needs at least 4.5:1. Large text needs at least 3:1, and meaningful interface components and graphical objects also use a 3:1 threshold against adjacent colors. Logos, incidental text, and inactive controls have specific exceptions in WCAG.

What counts as large text in WCAG?

Large text is at least 18 point, roughly 24 CSS pixels, at regular weight or at least 14 point, roughly 18.5 CSS pixels, in bold. Thin or unusual typefaces can still be difficult to read, so aiming above the minimum is safer.

Why should I sample the center of a letter?

Browsers smooth letter edges by blending text and background colors. An edge pixel therefore has less contrast than the solid source color. The center of a thick stroke is more likely to represent the intended text color, while the background sample should come from a nearby flat area.

Does a passing contrast ratio make a design accessible?

No. This checker measures one foreground and background pair. A complete review also covers semantics, keyboard access, focus visibility, zoom, motion, component states, images, and information conveyed by color alone. Gradients and changing backgrounds may require checks at multiple points.