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

And now that it's in the right place, we can close this because Color 5 already addresses it ^_^ The [relative color syntax](https://drafts.csswg.org/css-color-5/#relative-colors) can adjust any property of a color in any colorspace. All your examples can be written as:

* `lch(from var(--mycolor) calc(l * .8) c h)`
* `rgb(from var(--mycolor) r g b / calc(a * .5))`
* `rgb(from var(--mycolor) calc(r * 1.2) calc(g * 1.2) calc(b * 1.2))`
* `rgb(from var(--mycolor) r g b / 50%)`

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7052#issuecomment-1040636600 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 18:38:01 UTC