Hacker News new | ask | show | jobs
by masklinn 295 days ago
> Another very cool thing about CSS’s OKLCH is it’s a formula

While it’s more useful for a perceptual color space, relative colors are supported for all CSS color spaces e.g.

    background-color: rgb(from var(--base-color) calc(r - 76.5) g calc(b + 76.5));