These docs are for v1.0. Click to read the latest docs for v1.2.

SATURATION

Gets the saturation channel of the specified color in the HSL colorspace. Returns a decimal number from 0 to 1. For more information about hue, see: https://en.wikipedia.org/wiki/HSL_and_HSV#Saturation

Syntax

=SATURATION(color)

Arguments

ArgumentTypeDescription
colorColorThe color

Examples

=SATURATION("#bf4040")0.4980392156862745
Gets the saturation for the color represented by the hex color code #bf4040 (dark red)

=SATURATION(RGB(0, 255, 0))1
Gets the saturation for a color having an RGB value of green

=SATURATION(0)#ERROR!
Attempts to get the saturation from an integer, which is invalid because it cannot be converted to a color