The colour of a star is primarily a function of its effective temperature. You should recall that a star approximates the behaviour of a black body radiator. As a black body gets hotter its colour changes. If you were to heat a solid shot put it would first emit radiation in the infrared region.