Light from the Sun is white. It contains all the colours of the visible spectrum ROYGBIV. When this light passes through gas molecules the colours with a longer wavelength (ROYG) more or less pass straight through. Colours with a shorter wavelength (BIV) are absorbed by gas molecules and then reemitted but in any direction. This process is called Rayleigh scattering.