Convert RGB values to Hex and output it to an HTML file