Here's how it works:
* Blackbody Radiation: Stars, like all objects, emit radiation based on their temperature. This is called blackbody radiation.
* Wien's Displacement Law: Wien's Displacement Law states that the wavelength of peak emission from a blackbody is inversely proportional to its temperature. This means hotter objects emit more radiation at shorter wavelengths, which are perceived as bluer colors.
* Color Spectrum:
* Blue Stars: The hottest stars emit most of their radiation in the blue and ultraviolet parts of the spectrum.
* White Stars: Stars with slightly lower temperatures than blue stars emit more radiation in the blue, green, and yellow parts of the spectrum, appearing white.
* Yellow Stars: Our Sun is a yellow star, with a temperature that emits most of its radiation in the green, yellow, and orange parts of the spectrum.
* Orange Stars: Cooler stars emit more radiation in the red and infrared parts of the spectrum, appearing orange.
* Red Stars: The coolest stars emit most of their radiation in the infrared, appearing red.
In Summary:
The hotter a star is, the shorter the wavelength of its peak emission, and the bluer it appears. The cooler a star is, the longer the wavelength of its peak emission, and the redder it appears.
It's important to note that while temperature is the primary factor, other factors like the composition of the star's atmosphere can have a slight influence on its color.