For general reference. There is a simpler way using the library Supercharged. Although, you can use extension methods with all solutions mentioned, you find practical user library toolkit.
"#ff00ff".toColor(); // painless hex to color
"red".toColor(); // supports all web color names
Easier, right?