The APCA version, to be licensed for use with guidelines: W3/AGWG.
-
Updated
Sep 14, 2023 - JavaScript
The APCA version, to be licensed for use with guidelines: W3/AGWG.
A simplified version of the APCA math to bridge from WCAG_2 contrast math to the future, while being 100% backwards compatible with WCAG_2 contrast. By "backwards compatible" we mean if bridge-pca passes it, it will automatically pass WCAG_2 contrast.
Send it the background color, returns black or white whichever is maximum Lc value
See Stars is a Myndex MicroColor Library. This has standard functions for the standard (piecewise) IEC conversion of sRGB to Y, and the CIE standard Y to L* (Lstar) and back again. The math & constants here reference those of CSS 4 for compatibility.
Add a description, image, and links to the apca topic page so that developers can more easily learn about it.
To associate your repository with the apca topic, visit your repo's landing page and select "manage topics."