rgbToHex

converts an RGB color code to the HEX format

string rgbToHex(string rgb);

Parameters

rgbstringa string with Red, Green and Blue color values

Returns

stringthe Hex color code

Example

webix.color.rgbToHex("115,116,133"); // -> "#737485"

Back to top