Post
You can often get a better result using this trick with oklch() by @khamer.bsky.social which approximates APCA random-stuff.jakearchibald.com/color-contra...
random-stuff.jakearchibald.comcontrast-color() demo
0 reposts3 likes
For folks reading into this thread, understand that APCA is not part of any W3C spec, draft or otherwise: adrianroselli.com/2026/04/wcag... You can still use APCA (whichever APCA version), but the colors you choose may not satisfy WCAG. Be sure to also check them against WCAG.
adrianroselli.comWCAG3 Contrast as of April 2026I am not speaking on behalf of the W3C nor the W3C Accessibility Guidelines Working Group (AGWG), nor am I a member, nor does anyone who is member know I am writing this, nor do I have any insider knowledge. For years I have seen people, teams, products, organizations, and…
… Because drive-by threats typically use automated checkers, and color contrast is the most failed (per WebAIM Million: webaim.org/projects/mil... and also experience) and the easiest to test, there is more risk there.
webaim.orgWebAIM: The WebAIM Million - The 2026 report on the accessibility of the top 1,000,000 home pages