What is the relationship between a stars color and its temperature?
Color and temperature are related by the famous Planck black body formula. Actually, the formula gives the intensity of a black body at any wavelength given its temperature. The wavelength where the peak of this curve occurs is determined by the temperature of the black body. You then have to relate this peak wavelength of emission to how the human eye identifies color in the visual part of the electromagnetic spectrum.