APCA Contrast Calculator
WCAG 2 contrast ratios are a single number for all text. APCA — the Accessible Perceptual Contrast Algorithm proposed for WCAG 3 — scores contrast the way human vision actually works, and ties the passing score to font size. Enter a pair and see both methods side by side.
APCA result
Does it pass? (APCA 0.98G draft guidance)
| Use | Needs Lc | Verdict |
|---|---|---|
| Body text (90 preferred) | ≥ 75 | – |
| Large text (24px+) | ≥ 60 | – |
| Large bold text | ≥ 45 | – |
| Non-text UI (icons, borders) | ≥ 30 | – |
Live preview
APCA vs WCAG 2: same pairs, different answers
Both columns below were computed from the same two colors. The methods agree on black and white — and disagree exactly where it matters, on the mid-grays designers actually ship.
| Pair | APCA Lc | WCAG 2.1 ratio | What it means |
|---|---|---|---|
| #000000 on #FFFFFF | +106.0 | 21.00:1 | Both maxed out. The reference pair. |
| #595959 on #FFFFFF | +80.6 | 7.00:1 (AAA) | Both agree: fine for body text. |
| #767676 on #FFFFFF | +68.3 | 4.54:1 (AA) | WCAG 2 passes AA by 0.04 — APCA says it is below the Lc 75 body minimum. APCA is stricter here. |
| #E53935 on #FFFFFF | +66.0 | 4.23:1 (large only) | Both agree: large text only. |
| #F59E0B on #FFFFFF | +40.0 | 2.15:1 (fail) | APCA lets it through only as non-text (Lc ≥ 30). Not body text either way. |
| #FFFFFF on #0055CC | −84.4 | 6.62:1 (AA) | Both agree: fine for body text. The minus sign only means light-on-dark. |
| #9CA3AF on #121212 | −52.9 | 7.38:1 (AAA) | The big disagreement: WCAG 2 calls this AAA, APCA says it fails even the Lc 60 large-text line. Light gray on near-black is where APCA earns its keep. |
| #6B7280 on #121212 | −29.6 | 3.88:1 (large only) | Both fail body text; APCA also fails it for non-text (below Lc 30). |
Why APCA scores differently
Three things make APCA perceptual where WCAG 2 is mechanical. First, it models how eyes respond to lightness — mid-grays lose more than the ratio suggests. Second, it treats polarity asymmetrically: light text on a dark background is judged by a different curve than dark text on light, which is why the same pair can score +106 one way and −108 the other. Third, the passing bar moves with font size: small body text needs Lc 75, a 24px heading only needs Lc 60. WCAG 2 has one bar for all text; APCA has a bar per use.
How to use this honestly
- Ship to WCAG 2 today. APCA is a draft for WCAG 3. The 4.5:1 rule is still what auditors and the law check — use the contrast checker for that.
- Use APCA as a second opinion. When WCAG 2 barely passes (4.5–5:1) or when the pair is light-on-dark, check the Lc. If APCA is under 75 for body text, darken the text or lighten the background even though WCAG 2 says it passes.
- Trust the disagreement on dark mode. Light grays on near-black are the classic case where WCAG 2 over-promises. If your dark theme text sits at #9CA3AF or lighter on #121212, APCA is telling you it reads worse than the AAA label suggests.
How the math works
APCA 0.98G: sRGB channels are linearized, combined into relative luminance Y (0.2126729 R + 0.7151522 G + 0.0721750 B), soft-clamped near black (threshold 0.022), then raised to polarity-dependent powers (0.56/0.57 for dark-on-light, 0.65/0.62 for light-on-dark), scaled by 1.14 and reported as Lc × 100. No uploads, no tracking: it all runs in your browser.
FAQ
Is APCA the new WCAG standard?
Not yet. APCA is the contrast method proposed for WCAG 3 and is still a draft. WCAG 2.1 contrast ratios (4.5:1 for normal text) are the rules that govern compliance today. Use APCA as a second opinion that is closer to how human vision actually perceives contrast, not as a replacement for the WCAG 2 check.
Why is the APCA number sometimes negative?
The sign shows polarity, not quality: a positive Lc means dark text on a light background, a negative Lc means light text on a dark background. Only the absolute value matters for readability — Lc −84 and Lc +84 are equally readable.
Why does APCA disagree with the WCAG 2 ratio on my pair?
APCA models human perception: it weighs lightness the way eyes do, treats dark-on-light and light-on-dark differently, and ties the required score to font size. WCAG 2 uses one fixed ratio for all text. The two methods usually agree on black and white, but they can disagree sharply on mid-grays — for example light gray #9CA3AF on near-black #121212 scores 7.38:1 (AAA) under WCAG 2 but only Lc −52.9 under APCA, below even the large-text line.
What Lc value do I need?
Under the APCA 0.98G draft guidance: Lc 75 is the minimum for body text (90 is preferred), Lc 60 for large text (24px and up), Lc 45 for large bold text, and Lc 30 for non-text elements such as icons, borders, and focus rings. Anything below Lc 15 is effectively unreadable.
Is my color data uploaded anywhere?
No. Everything runs locally in your browser; no colors, no analytics, no tracking.