gka / chroma.js

JavaScript library for all kinds of color manipulations
https://vis4.net/chromajs/
Other
9.94k stars 543 forks source link

Add support for WCAG 3 contrast check with APCA #302

Open mkalamarz opened 1 year ago

mkalamarz commented 1 year ago

Currently, chroma.contrast() caters only to WCAG 2 standard. But it sometimes behaves unexpectedly.

image

Would you consider adding APCA (Advanced Perceptual Contrast Algorithm) contrast check as parameter to this or as a new function?

jshmllr commented 1 year ago

Bump

HM100 commented 1 year ago

Bump