spectral class

O

B

A

F

G

K

M

(most stars are currently classified under the morgan–keenan (MK) system using the letters OBAFGK, and M, a sequence from the hottest (O type) to the coolest (M type))