APCA
APCA, the Accessible Perceptual Contrast Algorithm, scores the contrast of text against its background as Lc, from about −108 to 106, and the sign carries the polarity: dark text on a light background is positive, light text on a dark one negative. Meadowstack reads text contrast in Lc and keeps WCAG 2's 4.5:1 as a floor under it.
By Bohuslav PoláčekChecked
| Text token on background | Theme | APCA | WCAG 2 | Carries |
|---|---|---|---|---|
| fg on surface (website page) | Light | Lc 103.6 | 16.67:1 | All text |
| fg-muted on surface (website page) | Light | Lc 87.0 | 7.77:1 | All text |
| fg-subtle on surface (website page) | Light | Lc 77.5 | 5.51:1 | All text |
| fg on canvas (app page) | Light | Lc 100.2 | 15.88:1 | All text |
| fg-muted on canvas (app page) | Light | Lc 83.6 | 7.40:1 | All text |
| fg-subtle on canvas (app page) | Light | Lc 74.1 | 5.25:1 | Text from 14px |
| fg on surface (website page) | Dark | Lc −95.3 | 15.87:1 | All text |
| fg-muted on surface (website page) | Dark | Lc −77.9 | 12.18:1 | All text |
| fg-subtle on surface (website page) | Dark | Lc −62.9 | 9.31:1 | Text from 14px |
| fg on canvas (app page) | Dark | Lc −95.7 | 16.64:1 | All text |
| fg-muted on canvas (app page) | Dark | Lc −78.3 | 12.77:1 | All text |
| fg-subtle on canvas (app page) | Dark | Lc −63.3 | 9.76:1 | Text from 14px |
Why it matters in an app
Business apps run on small text: a table at 13px, a meta line at 12px. WCAG 2's ratio gives a pair of colours one number whatever the size and weight of the text. APCA's Lc is read against size and weight, so the same grey can be fine for a 24px heading and too faint for a 12px label.
How Meadowstack uses it
The rule, decision 0014: text under 14px needs Lc 75, text from 14px Lc 60, text from 24px or from 16px at weight 550 Lc 45, and nothing goes below WCAG's 4.5:1. It holds in every state and both themes, hover included. The table above measures the kit's own text colours against it, so a change to a token shows here on the next build.
Mistakes to avoid
- Swapping the colours: APCA is not symmetric, so the text colour goes first.
- Reading the sign as a score: light text on a dark page gives a negative Lc. Compare the size of the number.
- Checking the resting state only: hover, selected and disabled rows change the background under the text.
Sources
- APCA-W3 on GitHub (Myndex)Checked
- WCAG 2.2, 1.4.3 Contrast (Minimum)Checked
Questions
Is APCA part of WCAG 2.2?
No. WCAG 2.2 measures text contrast as a ratio: 4.5:1 for text and 3:1 for large text. APCA is still being evaluated as a replacement for that maths, so Meadowstack keeps 4.5:1 as a floor and reads Lc on top of it.
Which Lc does Meadowstack require for text?
Lc 75 under 14px, Lc 60 from 14px, and Lc 45 from 24px or from 16px at weight 550, never below a 4.5:1 ratio.
Why is light text on a dark page negative?
APCA keeps the polarity in the sign: dark text on a light background gives a positive Lc, light text on a dark one a negative Lc. Compare the size of the number, not its sign.
Two ways
Build it yourself, or have it built
Build it yourself
Build your app on the framework
Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.
One payment, lifetime updates
Get the frameworkHave it built
Have us build your app
Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.
After launch, Care keeps it improving, from €99 a month.
from €1,990
Describe your app