Stars approximate black body radiators and their visible colour depend upon the temperature of the radiator. The curves show blue, white, and red stars. The white star is adjusted to 5270K so that the peak of its blackbody curve is at the peak wavelength of the sun, 550nm. From the wavelength at the peak, the temperature can be deduced from the Wien displacement law.

TA>TC>TB