add: validate the color type