validate color codes extracted