Free developer tools 100% air-gapped & local
WCAG & APCA Contrast Checker
Audit WCAG 2.1/2.2 and APCA (Lc) across HEX, RGB, HSL, OKLCH, Lab, LCH, display-p3, and common named colors with live alpha compositing, realistic UI previews, and 1-click perceptual OKLCH Auto-Fix.
01 Color inputs
Foreground & Background
Curated UI presets
#38BDF8
Accepts HEX, rgb()/rgba(), hsl()/hsla(), oklch(), lab(), lch(), color(display-p3 …), and common names such as white, black, and rebeccapurple.
1-Click Perceptual Auto-Fix OKLCH lightness binary search
—
—
02 Dual standards audit
WCAG 2.1/2.2 & APCA (Lc)
8.83:1
- Normal Text AA ≥ 4.5:1
- Pass
- Normal Text AAA ≥ 7.0:1
- Pass
- Large Text AA ≥ 3.0:1
- Pass
- Large Text AAA ≥ 4.5:1
- Pass
- UI & Graphics AA ≥ 3.0:1
- Pass
Lc −60.1
- Body Text |Lc| ≥ 75
- Fail
- Large / Headline |Lc| ≥ 60
- Pass
- Spot / UI Controls |Lc| ≥ 45
- Pass
APCA signs polarity: positive +Lc for dark text on light surface, negative −Lc for light text on dark surface.
Check live page contrast & export full token specs right in Chrome → Add SpecPeek to Chrome (Free)
03 Realistic UI preview
Test real components
Precision contrast for real interfaces
This 14px body paragraph renders directly with your foreground and background pair so you can judge real reading comfort, stroke clarity, and visual hierarchy before shipping.
04 Code & audit export
Copy production snippets
Inspect live webpages in Chrome
Want live WCAG contrast badges while hovering ANY webpage?
Install SpecPeek Free (zero <all_urls>, 100% local) or get Pro Solo ($39 once · early bird, $59 regular · 3 devices · 14-day refund).
Reference
Frequently asked questions
What is the difference between WCAG 2.1/2.2 contrast ratio and APCA (Lc)?
WCAG 2.1/2.2 calculates a symmetric relative-luminance ratio from 1:1 to 21:1 with fixed thresholds (4.5:1 AA normal text, 7:1 AAA, 3:1 large text and UI components). APCA (Lc, SAPC 0.0.98G-4g) is polarity-aware and models human visual perception more closely on dark mode and saturated pairs, reporting positive Lc for dark-on-light and negative Lc for light-on-dark.
Why does Auto-Fix adjust colors in OKLCH instead of HSL?
HSL lightness is not perceptually uniform, so shifting L in HSL often shifts perceived hue or produces muddy colors. Adjusting lightness in OKLCH with sRGB gamut clamping keeps your brand hue intact while finding the minimal perceptual change needed to hit 4.5:1 (AA) or 7.0:1 (AAA).
How does alpha transparency affect contrast checks?
Semi-transparent foreground colors (such as 8-digit HEX #38bdf8cc or rgba) blend over the background via Porter-Duff source-over compositing before relative luminance is computed. Lowering foreground alpha pulls the rendered color closer to the background and reduces both WCAG ratio and APCA Lc.
Does this contrast checker send my brand colors to any server?
No. The page runs under a strict air-gapped Content Security Policy (connect-src 'none') with zero external fonts, zero analytics, and zero outbound network requests. Every calculation and export happens locally in your browser.