Skip to content

Offer APCA as contrast measurement feature #127

Open
@jwbth

Description

Request

The contrast guidelines of WCAG 2.1 are outdated and inadequate in many cases. Its projected replacement in WCAG 3.0 is Accessible Perceptual Contrast Algorithm (APCA). It is already included in many tools (e.g. offered as an experimental feature in Chrome DevTools).

I suggest to implement that algorithm in the a11y plugin of Colord.

Why would people want to use another method in Colord?

My immediate source of discontent is this:

In one of my designs, I'm trying to choose color for text: black (#202122) or white (#ffffff) – depending on which has a bigger contrast with my background color (it is chosen randomly). So, Colord often misleads me in this situation, relying on WCAG 2.1. APCA is known for better accounting for contrast of dark color pairs than WCAG 2.0. Indeed, its calculator gives diametrically opposite results:

WCAG 2.1 APCA
image 4.37 37.2
image 3.68 -69.5 (the absolute value, 69.5, matters here)

Feel the difference! This forces me to look for tools other than Colord until Colord is updated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions