First one works on my machine. At least if I set
color
to "Blue". Since you mention "stuffitblue", that colour is not defined in
System.Drawing.Color.
You can use this code as check for colour name validity.
Or use this:
Color color = (Color)Enum.Parse(typeof(KnownColor), "stuffitblue");
But for conversion, you can omit the ColorConverter altogether and use
Color color = Color.FromName(st17.ToString());
For colours defined by a 32-bit value, you can use the
FromArgb method:
int jsonColourValue;
Color color = Color.FromArgb(jsonColourValue);