add function that converts a rgb color to a hex color