Skip to content
Sumly

WCAG Contrast Checker

Test foreground and background color combinations against WCAG 2.2 AA and AAA standards.

In

Design system & tested presets

Rendered preview

Headline Text Preview (9.25:1)

This sample paragraph shows how regular body text renders at this contrast level. Clear typography ensures readability across varied screens and lighting conditions.

Sample ButtonSample link text

Out

Contrast Ratio

9.25:1

WCAG 2.2 standard requirement is 4.5:1 for body text and 3:1 for large text.

Passes WCAG 2.2 AA for normal text. Great readability.

WCAG 2.2 compliance breakdown

Normal Text AA (≥ 4.5:1)Pass
Large Text AA (≥ 3.0:1)Pass
Normal Text AAA (≥ 7.0:1)Pass
Large Text AAA (≥ 4.5:1)Pass
UI Components & Icons (≥ 3.0:1)Pass

How WCAG Contrast Checker works

The tool calculates the relative luminance of both colors using the WCAG 2.2 sRGB formula and determines the contrast ratio from 1:1 up to 21:1.

WCAG 2.2 AA requires a minimum ratio of 4.5:1 for normal text and 3:1 for large text (18pt or 14pt bold).

WCAG 2.2 AAA sets the higher bar at 7:1 for normal text and 4.5:1 for large text. UI icons and buttons require 3:1.

Worked example

A deep green ink (#1f4a3f) on warm cream (#fff6e0) yields a 9.18:1 contrast ratio — passing both WCAG AA and AAA with top marks for effortless readability.

The tool above opens with these numbers. Change them to run your own scenario, or press Reset to come back to this example.

Frequently asked questions

Smaller images, same look — compressed entirely in your browser.

Exact pixel dimensions with the aspect ratio locked on.

Frame the shot — numeric crop with a live selection overlay.

Four harmony systems from one base colour — click to copy.

HEX, RGB and HSL in one place — plus the contrast verdict.

Simplify any ratio and scale dimensions without distorting.

  • contrast
  • wcag
  • accessibility
  • a11y
  • color
  • design tokens