Add a toHex method to Color