I am trying to use this to figure out if a color is light or dark
Evaluate whether a HEX value is dark or light
Now. It takes in a int
int
Just convert the hex string to an integer:
int color = Convert.ToInt32("FFFFFF", 16);