In my Windows Phone application I get the colour from xml and then bind it to some element.
I have found that I get the wrong colour in my case.
Here is my code:
var resources = feedsModule.getResources().getColorResource("HeaderColor") ??
FeedHandler.GetInstance().MainApp.getResources().getColorResource("HeaderColor");
if (resources != null)
{
var colourText = Color.FromArgb(255,Convert.ToByte(resources.getValue().Substring(1, 2), 16),
Convert.ToByte(resources.getValue().Substring(3, 2), 16),
Convert.ToByte(resources.getValue().Substring(5, 2), 16));
So after converting the colour, I get the wrong result. In xml I have this one:
<Color name="HeaderColor">#FFc50000</Color>
and it converts into #FFFFC500
You should use some 3rd-party converter.
Here is one of them.
Then you can use it so:
Also you can use the method from this link, it works as well.