Re: [csswg-drafts] A way of altering HEX colors lightness and opacity (#7052)

I agree [Color 5 already addresses it](https://drafts.csswg.org/css-color-5/#relative-OKLCH) although I wasn't able to point that out when I transferred it because drafts.csswg.org was down again.

Incidentally the third example does what was asked, but not what is wanted, as it does calculations on gamma-encoded values. So 

`color(from var(--mycolor) srgb-linear calc(r * 1.2) calc(g * 1.2) calc(b * 1.2))`  or
`color(from var(--mycolor) xyz-d65 calc(x * 1.2) calc(y * 1.2) calc(z * 1.2))`

would achieve the desired result.

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


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

Received on Tuesday, 15 February 2022 19:15:08 UTC