Web platform features explorer

Relative colors

Newly available since 2024-09-16
Tags: css Groups: CSS

The from keyword for color functions (color(), hsl(), oklch(), etc.) creates a new color based on a given color by modifying the values of the input color. Also known as relative color syntax (RCS).

Browser support (view on caniuse.com)

  • Chrome 125 Released on 2024-05-14
  • Chrome Android 125 Released on 2024-05-14
  • Edge 125 Released on 2024-05-17
  • Firefox 128 Released on 2024-07-09
  • Firefox for Android 128 Released on 2024-07-09
  • Safari 18 Released on 2024-09-16
  • Safari on iOS 18 Released on 2024-09-16

Developer signals

Usage (according to Chrome Platform Status)

~2.282% of page loads. More data at chromestatus.

Interop