WCAG 2.2 & APCA Contrast Checker

Test foreground and background contrast against WCAG 2.2 (AA/AAA) and APCA Lc simultaneously, with instant polarity swap and one-click compliant fixes.

WCAG + APCA Fix
  • 100% browser-local
  • Zero server transfers
  • CSS Color 4 precision
or drop a color string, CSS/JSON snippet, or file here · Ctrl V to paste · Enter two Hex/OKLCH colors or inspect live contrast

Instant Before & After Specimen

WCAG 2.1 + APCA + OKLCH Fix
Input Samplecontrast-pair.txt
#FFFFFF

---

#2563EB
Expected OutputOUTPUT
WCAG 2.1: 5.17 : 1 (AA Pass)  |  APCA: Lc -74.6 (Body Ready)

How to use WCAG & APCA Contrast

WCAG & APCA Contrast — cleanly inside your local browser with zero server transfers.

  1. Set foreground & backgroundEnter Hex, RGB, or OKLCH values for both colors or sample directly with the eyedropper.
  2. Evaluate scores & pathsInspect live WCAG 2.2 / APCA scores, CIEDE2000 distance, or OKLab gradient interpolation.
  3. Copy, chain, or exportCopy ready CSS/JSON snippets, download binary swatch files, or pipe directly to related Colr tools.

Frequently asked questions

Why inspect APCA Lc alongside WCAG 2.2 ratios?

WCAG 2.2 assesses normal text at AA against 4.5:1. APCA reports a signed Lc value that changes when text and background swap.

Can Colr automatically fix a failing foreground color?

Auto-Fix adjusts the foreground lightness towards a WCAG ratio of 4.5:1. Check the resulting ratio and APCA score.