Stars differ in color because they differ in temperature. We are all aware of the fact that a piece of iron when heated first glows a deep red, then appears yellowish in color and finally attains to white heat. It is the same among the stars. The red stars are the coolest of all the stars and the bluish-white stars are the hottest of all the stars, while intermediate between them in temperature come the yellow and the white stars.