Here's why:
* Blackbody Radiation: Stars emit light due to their incredibly high temperatures. This emission follows a pattern called blackbody radiation. Blackbody radiation means that the color of the light emitted depends on the temperature of the object.
* Wien's Law: Wien's Law describes this relationship mathematically. It states that the wavelength of peak emission (the color where the star is brightest) is inversely proportional to the star's temperature.
* Hotter Stars = Bluer: Hotter stars emit more blue light, making them appear blueish-white.
* Cooler Stars = Redder: Cooler stars emit more red light, appearing red or orange.
Here's a simplified breakdown:
* Blue/White: Very hot (25,000 Kelvin and above)
* White: Hot (7,500 to 10,000 Kelvin)
* Yellow: Intermediate (5,000 to 6,000 Kelvin)
* Orange: Cool (3,500 to 5,000 Kelvin)
* Red: Coolest (2,000 to 3,500 Kelvin)
So, next time you gaze at the stars, remember that their colors are a window into their incredibly hot and energetic interiors!