HSVVALUE

Gets the value channel of the specified color in the HSV colorspace. Returns a decimal from 0 to 1. For more information about value, see: https://en.wikipedia.org/wiki/HSL_and_HSV#Hue_and_chroma

Syntax

=HSVVALUE(color)

Arguments

ArgumentTypeDescription
colorColorThe color

Examples

=HSVVALUE("#0000ff")1

Gets the value for the color represented by the hex color code #bf4040 (dark red)

=HSVVALUE(RGB(0, 128, 0))0.5019607843137255

Gets the value for a color having an RGB value of green

=HSVVALUE(0)#ERROR!

Attempts to get the HSV value from an integer, which is invalid because it cannot be converted to a color