Check if a string vector is in hexadecimal color format
is.hexcolor(x)
x
A string vectors
x <- c("#f0f0f0", "#FFf", "#99990000", "#00FFFFFF") is.hexcolor(x)