When the charged solar particles collide with atoms in our atmosphere, these atoms get excited. During the return to normal state the atoms release colors. Oxygen then can produce the common green color and also the red in high altitudes. The color depends how excited the gas is. Nitrogen is responsible for blue and probably low altitude red-pink.