color depends on the wave length produced, for example if the wave length is shorter then it would produce violet and when it continues to get higher it produces other colors. from low to high it goes, violet, indigo, blue, green, yellow, orange, red. those are also only in the visible light spectrum whereas there are plenty of other wave we cannot see with the human eye.