A function to convert RGB forms into HTML friendly color defs