Xamarin.Forms.Color to hex value
<p>I have a Xamarin.Forms.Color and I want to convert it to a 'hex value'.</p>
<p>So far, I haven't found a solution to my problem.</p>
<p>My code is as follows:</p>
<pre><code>foreach (var cell in Grid.Children)
{
    var pixel = new Pixel
    {
        XAttribute = cell.X ,
        YAttribute = cell.Y ,
        // I want to convert the color to a hex value here
        Color = cell.BackgroundColor
    };
}
</code></pre>