Here is a snippet to change the color Red to the HTML output
using System.Drawing;
Color colorRed = ColorTranslator.FromHtml("Red");
Console.WriteLine("colorRed: " + colorRed);
string htmlHexColorValueThree = String.Format("#{0:X2}{1:X2}{2:X2}", colorRed.R, colorRed.G, colorRed.B);
Console.WriteLine("htmlHexColorValueThree: " + htmlHexColorValueThree);