RGB to Hex Convert rgb to hex. Usage import rgb2hex from 'cc-rgb2hex' rgb2hex(255, 0, 255) // #ff00ff