Allows RGB values to be validated