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

@emilio wrote

> We do something similar with the OS accent color in Gecko for the new form controls, using the relative luminance to compute lighter / darker color

I would be interested to know about these magic numbers

```js
  constexpr float kLightLuminanceScale = 25.048f / 13.693f;
  constexpr float kDarkLuminanceScale = 9.338f / 13.693f;
  constexpr float kDarkerLuminanceScale = 5.901f / 13.693f;
```

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