XL.HexColorToRGB function: convert Hex color code to RGB format

XL.HexColorToRGB function – Text function type – сonverts a text string with Hex color code like #RRGGBB to its equivalent in RGB format.
For example, Hex color code #FFFFFF will be transformed to RGB format rgb(255, 255, 255)
Before you begin, add Functions to Excel
Functions are one of the 20+ features within XLTools Add-in for Excel. Works in Excel 2019, 2016, 2013, 2010, desktop Office 365.

Download XLTools for Excel
Syntax
=XL.HexColorToRGB(colorHex)
Argument | Description |
---|---|
colorHex [required] | A hexadecimal formatted color string like #RRGGBB |
Examples [download]
Download this spreadsheet with examples and try the function yourself.
Download examples with this function (xlsx)
Formula | Description |
---|---|
=XL.HexColorToRGB("#FFFFFF") | Converts Hex color code #FFFFFF to RGB format |
=XL.HexColorToRGB(B3) | Converts Hex color code in cell B3 to RGB format |
Any questions or suggestions?