Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offer APCA as contrast measurement feature #127

Open
jwbth opened this issue Jul 30, 2024 · 0 comments
Open

Offer APCA as contrast measurement feature #127

jwbth opened this issue Jul 30, 2024 · 0 comments

Comments

@jwbth
Copy link

jwbth commented Jul 30, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant