Menu

Our most used text colour passes WCAG at 6.29 to 1, and APCA says it is only legible at 42px
📰

Our most used text colour passes WCAG at 6.29 to 1, and APCA says it is only legible at 42px

DEV Community: css·Daniel Pertu·about 23 hours ago
#uNiz4UJ6
#devtocss#devto#dev#cdcdcd#apca
Reading 0:00
15s threshold

Yesterday I ran axe-core against all 79 pages of our site and it reported 981 colour contrast failures. Today I want to look at the other side of that number: the colours axe says are fine.

The WCAG 2 contrast ratio is a formula from 2008 that divides two relative luminances and adds 0.05 to each to avoid dividing by zero. It is symmetric, which means it does not care whether your text is light on dark or dark on light, and it has a known weakness in the dark half of the range, where that 0.05 flattens real differences. APCA is the candidate replacement being developed for WCAG 3. It is asymmetric, it accounts for polarity, and it returns a lightness contrast value, Lc, from roughly -108 to 106 instead of a ratio.

Our site is dark. #171717 background, grey text.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.