Zokilos

Color Contrast Checker

Check WCAG contrast ratio between text and background colors

Large Text Sample (24px+)
Normal text sample used for everyday reading, like this paragraph.
21.00 : 1
AA Normal Text
AA Large Text
AAA Normal Text
AAA Large Text

AA requires 4.5:1 (normal) or 3:1 (large, 18.66px+/24px bold). AAA requires 7:1 (normal) or 4.5:1 (large).

What Is This Color Contrast Checker?

A tool that calculates the actual WCAG contrast ratio between a text color and a background color, and shows instantly whether that pairing passes the accessibility standards designers and developers are usually required to meet.

How to Check Contrast Between Two Colors

1

Pick or type a text color.

2

Pick or type a background color.

3

Read the ratio and pass/fail badges instantly.

Understanding the Contrast Ratio

The ratio ranges from 1:1 (identical colors, no contrast at all) to 21:1 (pure black on pure white, the maximum possible). Higher means easier to read; WCAG sets minimum ratios that count as acceptable for each level and text size.

WCAG AA vs AAA: What's the Difference?

AA is the standard level most accessibility requirements and legal standards target: 4.5:1 for normal text, 3:1 for large text. AAA is stricter and optional for most sites: 7:1 for normal text, 4.5:1 for large text. Passing AAA automatically passes AA, since its thresholds are higher.

What Counts as "Large Text"?

Text at least 18pt (24px) at regular weight, or at least 14pt (18.66px) at bold weight, counts as large under WCAG and gets the lower contrast requirement — bigger, bolder strokes are inherently easier to read at lower contrast than small body text.

How the Contrast Ratio Is Calculated

Each color's relative luminance is calculated from its sRGB values using the WCAG formula, then the ratio is (lighter luminance + 0.05) ÷ (darker luminance + 0.05) — the same calculation WebAIM's contrast checker and every other WCAG-compliant tool uses, so results match across tools.

Can I Upload an Image to Check Contrast?

No, not with this tool. Colors are entered manually by hex code or color picker; there's no image upload to sample colors from a screenshot or design mockup automatically.

Why Color Contrast Matters for Accessibility

👁️

Low vision & color blindness

Sufficient contrast keeps text readable for people who can't rely on subtle color differences.

☀️

Bright environments

Higher contrast holds up better on a phone screen in direct sunlight, for everyone.

⚖️

Legal & compliance requirements

Many accessibility standards and regulations require meeting WCAG AA at minimum.

What This Tool Doesn't Do

  • No image or screenshot color extraction
  • No batch checking of multiple color pairs at once
  • No APCA (the newer WCAG 3 draft contrast algorithm), WCAG 2.x ratio only

Limitations

  • Hex input only, no rgb()/hsl()/named colors
  • No image upload for automatic color sampling
  • WCAG 2.x formula only, not the newer APCA method

Benefits of Using This Tool

  • Exact WCAG 2.x formula, matching WebAIM and other standard tools
  • Live preview with real sample text, not just numbers
  • All four pass/fail levels shown at once (AA/AAA, normal/large)
  • Runs entirely in your browser — nothing sent to a server
  • Free, with no sign-up required

Frequently Asked Questions

Can I upload an image to check contrast?

No. Colors are entered manually, either by hex code or a color picker, not extracted automatically from an uploaded image or screenshot.

What's the difference between WCAG AA and AAA?

AA is the standard, widely required level: 4.5:1 for normal text, 3:1 for large text. AAA is the stricter, enhanced level: 7:1 for normal text, 4.5:1 for large text. Most accessibility requirements and legal standards target AA; AAA is a higher bar not every site aims for.

What counts as "large text" under WCAG?

Text at least 18pt (24px) at regular weight, or at least 14pt (18.66px) at bold weight. Large text gets a lower contrast requirement than normal body text because bigger, bolder strokes are inherently easier to read at lower contrast.

Is this the same math WebAIM's contrast checker uses?

Yes. Both use the same WCAG 2.x relative luminance formula defined in the spec, so the same two colors should produce the same ratio and the same pass/fail result in either tool.

Does this check contrast in an image or screenshot?

No. It only compares two colors you enter directly. It doesn't analyze a photo, design mockup, or screenshot to find or check colors within it.

Is anything sent to a server when I use this?

No. The contrast calculation happens entirely in your browser using JavaScript.