Refactor a color value.