Samples
Forum
Services
Documentation
hexToDec
hsvToRgb
rgbToHex
rgbToHsv
toHex
toRgb
Start
API Reference
color
Methods
rgbToHex
converts an RGB color code to the HEX format
string
rgbToHex
(
string
rgb
);
Parameters
rgb
string
a string with Red, Green and Blue color values
Returns
string
the Hex color code
Example
webix.
color
.
rgbToHex
(
"115,116,133"
)
;
// -> "#737485"
Back to top