HSVSATURATION

Gets the saturation channel of the specified color in the HSV 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

=HSVSATURATION(color)

Arguments

ArgumentTypeDescription
colorColorThe color

Examples

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

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

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