ColorQ
ColorQ[color] yields True if color is a valid color directive and False otherwise.
Examples
Check valid colors:
ColorQ[Red]
(* True *)ColorQ[RGBColor[0.5, 0.2, 0.8]]
(* True *)Invalid color:
ColorQ["notacolor"]
(* False *)Please visit the official Wolfram Language Reference for more details.