Raise an error when unable to convert to a color