Skip to content

Glossary

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

The kit's text colours on its page colours, measured in APCA and WCAG 2 when the site was built.Computed when the site was built from the kit's colour tokens (Meadowstack kit, packages/kit/src/tokens), with APCA-W3 0.0.98G-4g. Light text on a dark page reads as a negative Lc; its size is what counts.

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

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 framework
  • Have 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