asp.net.ph

Skip Navigation LinksAbakada: Back to Basics > Language References > CSS Properties > Filter Functions > Saturate Filter Effect

Saturate Filter Effect


Sets the level of saturation for an input image.

Syntax:

{ filter: saturate(number | percentage) }

Possible Values

number Absolute positive floating-point number or a relative percentage value.

The property is read/write with a default value of 1.

Remarks:

The saturate( ) CSS function adjusts a visual object’s color saturation level, effectively making the image appear more or less vivid.

The passed parameter defines the amount of deviation from the element’s default saturation value.

A value of 1 or 100% leaves the input unchanged, while a value of 0 or 0% renders the input image completely unsaturated ( no color ).

Values less than 1 ( or <100% ) reduces the effect, while values more than 1 ( or >100 ) increases the effect.

Negative values ( < 0 ) are ignored and render the element unchanged.

Example

Saturate with values between 0 and 1 or between 0% and 100%.

filter: saturate(0)
filter: saturate(.25)
filter: saturate(.75)
 
filter: saturate(30%)
filter: saturate(60%)
filter: saturate(100%)

Saturate with a value more than 1 or more than 100%.

filter: saturate(1.25)
filter: saturate(2.5)
filter: saturate(5)
filter: saturate(175%)
filter: saturate(350%)
filter: saturate(700%)

Saturate with a negative value. Image is unchanged.

filter: saturate(-10)
See Also

grayscale   hue-rotate   invert   opacity   sepia


Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note