Reformat color validation in colorValid()