You may have noticed stars have colors. The color they appear is due to their surface temperature. The hottest stars appear blue, the coolest appear red and yellow is right in the middle.

Learn more about star types.