As title says. From: (https://stackoverflow.com/a/13290832/3315962)
is_colour(x)
x
Character vector of colours in hex-format.
Logical, or error.