Stars are classified into 7 groups according to their colours (which is due to their surface temperature); O,B,A,F,G,K,M

O are hottest (> 33 000 K and blue), M are coolest (2000 – 3700K and red)