Colour means temperature
The hottest stars shine blue or blue-white — their surfaces can be tens of thousands of degrees. Medium stars like our Sun shine yellow-white at about 5,500 degrees on the surface. The coolest visible stars glow orange or red, at roughly half the Sun's surface temperature — still hot enough to melt any metal, just cooler by star standards.
It works like a fire or a heating element: red-hot is the coolest glow, then orange, then yellow, then white, then blue-white at the fiercest heat. A star's colour is that same scale written across the sky.
Reading the night sky
Try it on a clear night away from streetlights. The bright stars of Orion show the contrast side by side: blue-white Rigel at the hunter's foot and orange-red Betelgeuse at his shoulder, two stars of the same picture at very different temperatures.
Your eyes see star colours best in genuinely dark places — one more reason snowy mountains and desert skies put on a better show than a lit-up town. Give your eyes twenty minutes to adjust, and the colours sharpen.

