Test if the object is a color
is_color(x)
x
An object
TRUE if the object inherits from the color class.