CSS color-interpolation-filters Property
The color-interpolation-filters property sets the color space used for SVG filter effects: sRGB or linearRGB.
Description
The color-interpolation-filters property sets the color space used by SVG filter effects, such as <feGaussianBlur>, <feColorMatrix> or <feComposite>. Unlike most color properties, its initial value is linearRGB, so filter calculations happen in linear light by default.
Switching a filter primitive or the whole <filter> to sRGB is useful when a filter must produce exactly the same colors as CSS (for example a color matrix that should match a design token), because CSS colors and blending normally work in sRGB. It applies to filter primitives and is inherited from the <filter> element. Other SVG color operations use color-interpolation.
Definition
- Initial value
- linearRGB
- Applies to
- filter primitives in SVG
- Inherited
- yes
- Computed value
- as specified
- Animatable
- discrete
- JavaScript syntax
- object.style.colorInterpolationFilters
Interactive Demo
Syntax
color-interpolation-filters: auto | sRGB | linearRGB;
Values
- autoThe browser may choose either color space.
- sRGBFilter effects operate in the sRGB color space.
- linearRGBThe default. Filter effects operate in linearized RGB.
- initialSets the property to its initial value.
- inheritTakes the computed value of the parent element.
Example
Browser Support
The following information will show you the current browser support for the CSS color-interpolation-filters property. Hover over a browser icon to see the version that first introduced support for this CSS property.
Desktop





Tablets & Mobile





