Saturation
  • 18 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

Saturation

  • Dark
    Light
  • PDF

Returns a decimal between 0 and 1 representing the color's saturation component.

Function signature

SATURATION(color: String) => Number
Parameter Description
Color Color

Examples

Formula Return value
SATURATION("hsl(80, 20%, 40%)") 0.19607843
SATURATION("rgb(10, 20, 40)") 0.6
SATURATION("#ff0") 1
SATURATION("red") 1

Was this article helpful?

What's Next