Re: [csswg-drafts] [css-color-6] color-contrast() should distinguish foreground and background (#7359)

> Delta-E L* is similar to relative luminance and may have similar pitfalls.

I'm interested in this one because it is [what Google Material Design uses](https://material.io/blog/science-of-color-design) (HCT Tone is the same as CIE L*). Also because L* is perceptually uniform (but as @Myndex has pointed out, for large blocks of color not for higher-frequency items like text). However, it seems to give very similar results to WCAG 2.1, except for a few mid-tone colors. To see this, on [the black or white app](https://colorjs.io/apps/blackwhite/):

- order by Lightness
- enable changes
- set number of swatches to 500 or so
- choose WCAG2.1
- choose Lstar

There are not many differences.

> If a desired objective for having many different formulas is for testing to find a better contrast formula, I don't believe incorporation into a core CSS feature is the right way to go.

This is why I implemented [several of them in color.js](https://colorjs.io/docs/contrast.html), so people can experiment. So far only APCA is giving good results.

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7359#issuecomment-1210588000 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 10 August 2022 12:13:25 UTC