I allow my users to set a background colour in their app (ie #D900D9), which is stored as a string. I then would like to set a property, 'border' which will take the hex value 'background' and the darkness say by 20%?( ie #770077) How can I achieve this?
public string backgroundColor { get; set; }
public string borderColor
{
get
{
return backgroundColor + 20%
}
}