use regexp for color check