title: Convert .Net Color Objects to HEX codes and Back
body: <p>As per the question title, How could I take a hex code and convert it to a .Net Color object, and do it the other way?</p>
  
  <p>I googled and keep getting the same way which doesn't work. </p>
  
  <pre><code> ColorTranslator.ToHtml(renderedChart.ForeColor)
  </code></pre>
  
  <p>Which returns the name of the color as in 'White' instead of '#ffffff'! Doing it the other way seems to have odd results, only working some of the time...</p>