public static Boolean IsValidColor (String color) { return Regex.IsMatch(color, "^#[A-Fa-f0-9]{6}$"); }