convert c# color html color

There is class in System.Drawing named ColorTranslator here is sample:
  System.Drawing.Color c = System.Drawing.ColorTranslator.FromHtml("#CCFFEE");
  string strHtmlColor = System.Drawing.ColorTranslator.ToHtml(c);
Small tips save time 🙂