Use original Number.toString in rgbToHex to specifiy the radix