* Stellar Temperature and Color: A star's color is directly related to its surface temperature.
* Blue stars are the hottest.
* Yellow stars are in the middle range.
* Red stars are the coolest.
* Why Blue Stars are Hotter: The color of a star is determined by the wavelength of light it emits most strongly. Blue light has a shorter wavelength than yellow light. Shorter wavelengths correspond to higher energy, and higher energy means a hotter star.
In summary: A blue star would have a much greater temperature than a yellow sun.