Relative colors
Limited availability
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).
Compatibility (view on caniuse.com)
- Chrome 119 Released on 2023-10-31
- Chrome Android 119 Released on 2023-10-31
- Edge 119 Released on 2023-11-02
- Firefox ❌ Search for bugs Search for standards position
- Firefox for Android ❌ Search for bugs Search for standards position
- Safari 16.4 Released on 2023-03-27
- Safari on iOS 16.4 Released on 2023-03-27