If you shine the light from any star through a prism, the light separates out into all its many component colors. Tiny water droplets in the sky can make a big prism, resulting in a rainbow. Astronomers call it a spectrum. As you can see, the sun radiates many different colors, yet the sun is brighter at yellowish wavelengths than at red or blue because of its temperature.