apca calculator

APCA Contrast Calculator

Calculate APCA contrast (Lc) for text and background colors. APCA is polarity-aware, so dark-on-light and light-on-dark are evaluated differently.

Preview
The quick brown fox jumps over the lazy dog. 1234567890

What is APCA?

APCA stands for Accessible Perceptual Contrast Algorithm. It is a modern way to evaluate readability contrast between text and background colors. Unlike traditional contrast ratio checks, APCA models human perception more directly and returns a signed contrast value called Lc.

In APCA, the sign matters:

  • Positive Lc usually means dark text on a light background.
  • Negative Lc usually means light text on a dark background.
  • The absolute value (for example, |Lc| = 75) indicates strength of readable contrast.

How to use this APCA calculator

1) Choose your colors

Enter a text color and a background color with either the color picker or a hex code such as #1a1a1a and #ffffff.

2) Enter type settings

Set your expected font size and weight. The calculator uses these to estimate a recommended minimum Lc target.

3) Read the result

Click Calculate APCA. You will get:

  • APCA contrast score (Lc)
  • Polarity direction
  • Recommended minimum Lc for the selected type size/weight
  • A pass/fail guidance message for practical readability

Interpreting APCA Lc values in practice

There is no single number that fits every text style. Smaller and lighter fonts need stronger contrast. Larger and heavier text can work with lower contrast values.

  • |Lc| 90+: excellent for very small text and dense reading contexts.
  • |Lc| 75–89: strong for normal body text on most interfaces.
  • |Lc| 60–74: often usable for larger body text or bold UI text.
  • |Lc| 45–59: usually suitable for large headlines and non-critical display text.
  • |Lc| < 45: risky for reading; likely insufficient for core content.
APCA guidance is contextual: language, font, stroke contrast, anti-aliasing, and display quality all influence real-world readability.

APCA vs WCAG 2 contrast ratio

WCAG 2 contrast ratios are still widely required in policy and tooling, but APCA improves perceptual realism in several ways:

  • APCA is polarity-aware (light text on dark behaves differently than dark on light).
  • APCA is tuned more for readability perception rather than a purely geometric ratio.
  • APCA better reflects why some combinations that “pass” old rules can still look hard to read.

If your organization must meet WCAG 2 conformance today, use both checks: pass required ratio rules and optimize readability with APCA.

Design workflow tips for better contrast

Start with content roles

Define text tiers first: body, captions, metadata, button labels, and headings. Each role should have a clear contrast target based on size and weight.

Use fewer text colors

A restrained palette is easier to maintain. Most systems work well with 2–4 text tokens plus semantic accents.

Test real screens

Don’t rely only on calculations. Validate on laptop, mobile, and lower-quality displays where anti-aliasing and glare can reduce perceived readability.

Common APCA mistakes to avoid

  • Using one fixed threshold for every text style.
  • Ignoring polarity and evaluating only absolute contrast.
  • Testing in ideal lab conditions but shipping to noisy real contexts.
  • Treating decorative low-contrast text as if it were body content.

Final takeaway

An APCA calculator helps you move from “technically passing” to “actually readable.” Use Lc to set typography-aware targets, verify in context, and build interfaces that are easier for everyone to read.

🔗 Related Calculators