Stars have the different colors that make up white light, the color of a star is related to the wavelength of the light which is emitted by the star which is related to the temperature of the star’s surface
Very hot temperatures yield hotter wavelength, which light having short wavelength being bluish, the blue and blue-white stars are the hottest stars, while stars which emit longer wavelength and therefore have a color of brown and red have a cooler surface temperature
The surface temperature of a star also has an effect on the bright appearance of a star. The higher the temperature of a star the higher the heat energy given off and the brighter the star will be, as a star that gives off more energy is brighter than one that gives less energy.