Re: [csswg-drafts] [css-ui-4] choosing background colors for accent-color for contrast (#6159)

@josepharhar thanks for the pointer.

A relative luminance of 0.5 is no-where near the middle of the lightness scale, though, if that is what you were looking for. (A CIE Lightness of 50% *is* in the middle).

`lab(50% 0 0)` is `color(xyz 0.1776 0.18419 0.15199)` is `rgb(46.637% 46.633% 46.627%)` so the relative luminance (the Y component) is **0.18419**

`lab(76.07% 0 0)` is `color(xyz 0.48212 0.50001 0.41261)` is `rgb(73.542% 73.536% 73.528%)` so much lighter; here the relative luminance is **0.5**


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


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

Received on Tuesday, 30 March 2021 23:50:41 UTC