Skip to main content
Version: Streamsheets 3.0

COLOR.CONVERT

Converts a given color value to another color format. Currently following color formats are supported: CMYK, HEX, HSL, HSV and RGB.

Syntax

=COLOR.CONVERT(Color, FromColor, ToColor)

Arguments

NameTypeDescription
ColorStringA string specifying the color value to convert.
FromColorStringA color format string which matches given color value. One of CMYK, HEX, HSL, HSV or RGB.
ToColorStringA color format string which defines resulting color value. One of CMYK, HEX, HSL, HSV or RGB.

Return

TypeDescription
StringString, the converted color value.

Examples

FormulaResultComment
=COLOR.CONVERT("128,128,128", "RGB", "CMYK")
"0,0,0,50"CMYK color value
=COLOR.CONVERT("0CF030", "HEX", "HSV")
"129,95,94"HSV color value