The colour of X2 (X=halogen) appears due to excitation of electrons from anti-bonding π to anti-bonding σ MOs.