Convert rgb colors to their hexadecimal value.