 The color of a star , as determined by the most intense frequency of the visible light , depends on the temperature of the star 's outer layers , including its photosphere . Besides visible light , stars also emit forms of electromagnetic radiation that are invisible to the human eye . In fact , stellar electromagnetic radiation spans the entire electromagnetic spectrum , from the longest <unk> of radio waves through infrared , visible light , ultraviolet , to the shortest of X @-@ rays , and gamma rays . From the standpoint of total energy emitted by a star , not all components of stellar electromagnetic radiation are significant , but all frequencies provide insight into the star 's physics . 
