Stars appear different colors when viewed from dark skies because their temperatures vary, with hotter stars like blue and blue-white stars glowing brighter than cooler yellow-white, orange, and red stars. A star is a huge ball of gas that gets squeezed together by gravity, causing the gases to heat up until the star glows and gives off light, but stars have a wide range of temperatures depending on their size and age.