The color of a star is directly related to how hot it burns. The hotter a star the bluer it appears, the colder a star the redder. Our sun is a G-class star and appears yellow. All stars have energy because their gravity is so intense the nucleus of the atoms of two different elements fuse together the difference of their mass manifests in energy some of which we perceive as light.
Latest Answers