The color of a star's visible light indicates its surface temperature: a relatively cool star glows red (longer wavelength), and very hot ones glow bluish-white or even blue (shorter wavelengths).
The relationship is λmax*T=2.898*10^-3m°K
Where λmax is the wavelength at which the star emits the maximum amount.
So, for example for the Sun λmax = 5.1 nm
Therefore T=(2.898*10^-3m°K)/(5.1*10^-9m)
T=568,000 °C
So as an object increases in temperature, its colour will slowly change, starting at red and progressing into blue and beyond.