WCAG 2.2 & APCA Contrast

Check strict unrounded WCAG 2.2 AA/AAA & APCA contrast, auto-fix failing colors, and audit #121212 Dark Mode.

Color InputsPick colors or enter HEX codes
Luminance L1: 0.1851

rgb(99, 102, 241) • oklch(58.5% 0.204 277.1)

Luminance L2: 0.0088

rgb(15, 23, 42) • oklch(20.8% 0.040 265.8)

Large Heading Specimen (24px / 19px Bold)

Normal body text requires a strict 4.5:1 contrast ratio for WCAG 2.2 Level AA compliance, and 7.0:1 for enhanced Level AAA legibility.

UI Component Outline (3.0:1 Min)
Normal AA (4.5:1)FAIL
Normal AAA (7:1)FAIL
Large AA (3.0:1)PASS
Large AAA (4.5:1)FAIL
UI / Icons (3.0:1)PASS

Strict WCAG 2.2 Ratio (Unrounded)

3.99 : 1

Raw: 3.9966:1 (No Round-Up)

Next-Gen APCA (WCAG 3 Candidate)

Lc -30

Low Perceptual Contrast

Dual-Theme Surface Audit (Text #6366F1)

vs #121212 Dark:4.19:1 (Fail)
vs #FFFFFF Light:4.46:1 (Fail)
Contrast Auto-Corrector — Closest Valid Colors for 4.5:1 (Level AA)

Adjust Text to #6E71F2

Achieves 4.51:1

Adjust Background to #05070D

Achieves 4.50:1

About Strict WCAG 2.2, APCA & OKLCH Color Contrast Checker + Auto-Corrector

Because WCAG 2.2 compliance never rounds up, a contrast ratio of 4.499:1 is a strict legal and technical failure for normal body text (4.5:1 AA). This tool computes exact relative luminance using green-weighted human eye sensitivity (`0.2126R + 0.7152G + 0.0722B`) and truncates ratios without rounding.

Whenever a color combination fails Level AA (4.5:1) or Level AAA (7.0:1), the built-in Contrast Auto-Corrector algorithmically shifts lightness to suggest the closest valid foreground or background match—while also auditing your text color against a `#121212` Dark Mode surface and outputting modern CSS `oklch()` strings.

Luminance Math

L = 0.2126R + 0.7152G + 0.0722B (Strict No-Round)

Thresholds

Normal AA (4.5:1), AAA (7:1), Large/UI (3:1)

Auto-Corrector

1-Click Closest Valid Foreground & Background Fix

Next-Gen Specs

APCA Lc Score + CSS oklch() + #121212 Dark Check

Frequently Asked Questions

Why does 4.499:1 fail WCAG 2.2 Level AA?

W3C WCAG 2.2 guidelines require a minimum contrast ratio of 4.5:1 for normal text without rounding up. A ratio of 4.499:1 is strictly below 4.5:1 and is flagged as a failure.

How does the Contrast Auto-Corrector suggest replacement colors?

It preserves your original Hue and Saturation while searching across Lightness steps to find the smallest visual adjustment that strictly clears 4.5:1 (AA) or 7.0:1 (AAA).

More Developer Utilities

View all →