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
Name | Type | Description |
---|---|---|
Color | String | A string specifying the color value to convert. |
FromColor | String | A color format string which matches given color value. One of CMYK, HEX, HSL, HSV or RGB. |
ToColor | String | A color format string which defines resulting color value. One of CMYK, HEX, HSL, HSV or RGB. |
Return
Type | Description |
---|---|
String | String, the converted color value. |
Examples
Formula | Result | Comment |
---|---|---|
| "0,0,0,50" | CMYK color value |
| "129,95,94" | HSV color value |