CSS Relative color syntaxExternal Link

Baseline 2024Newly available

Since September 2024, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

Relative color syntax in CSS allows a color to be defined relative to another color using the from keyword and optionally calc() for any of the color values.

IE
Edge
Firefox
Chrome
Safari
Safari iOS
Opera Mini
Chrome Android
Android Browser
Samsung Internet
Globals: 93.83% of all users can use this feature, 88.54% fully supported, 5.29% partially supported
✓Supported
✗Not supported
Partial support
Behind a Flag