Why are soap bubbles and oil layers coloured?

 Coloured bands on soap bubbles and oil layers are caused by interference of light waves with themselves. Sunlight is a composite of seven colours (violet, indigo, blue, green, yellow, orange and red, in that order) each of which lies in a specific wavelength range. For example, violet light has a wavelength of 380 nanometers (one nanometer is a billionth of a metre) and red, above 600 nm.

Light waves falling on any thin film are partially reflected from the top and bottom surfaces of the film. A wave reflected from the bottom surface has to travel a longer distance than the one reflected from the top. This difference in distance travelled by the waves, called path difference, leads to a difference in the phases of the light waves. (The phase describes the electric and magnetic fields associated with light waves.) This phase difference depends on the thickness of the film at the point of reflection and angle of viewing. If two waves are ‘out of phase’, then they cancel each other (destructive interference) and if they are ‘in phase’ they add up (constructive interference.) Thus the regions of the spectrum (colours) which interfere constructively can be seen whereas those which interfere destructively are lost. Even if there is a slight variation in the thickness of the film, it will be coloured differently.