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

First, props for correctly undoing gamma-encoding when calculating relative luminance (many get this wrong).

In terms of the crossover point, it may be helpful to know that `lab(50% 0 0)` is `color(xyz 0.177596 0.184187 0.151993)` in other words a CIE Lightness of 50% (visually mid way between white and black) is a luminance (Y) of 0.184.

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6159#issuecomment-809817015 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 00:34:38 UTC