Thin-film interference

Light reflecting from the top and bottom of a thin film interferes, and whether a colour is strengthened depends on the film's thickness and on the half-wavelength shift each reflection off a slower medium adds, which colours soap bubbles and oil slicks.

From AP Physics 2.