num.rgbToHexStr

rgbToHex(r, g, b)

Convert separate rgb values to a single integer.