Better RGB to hex conversion method
Fix operator order being wrong

I forgot the brackets.