Thin film interference
The colors of the soap bubbles come from the phenomenon, thin film interference
One of the most fascinating things about soap bubbles is the colors. Soap bubbles are thin enough to be able to affect the light that hits them. So you see e.g. blue, yellow and green colors in the bubbles, even though you make soap bubbles in the white light from the sun. And normally you see several colors at the same time in the same bubble.
The bubbles in the image above are illuminated with white light, which contains all colors. That is the reason that we are able to see the colors of our clothes when we illuminate it with white light. In order to understand how the colors are created, we will first focus on a bubble illuminated with only one color (monochrome light). You are able to see this color in some places and black in other places. This is because the thickness of the bubble wall is different in different areas. So it is the thickness of the bubble wall that affects for whether the yellow light is extinct or not.
Soap bubble domes on a light table illuminated with a monochrome low pressure sodium lamp
Soap bubble dome on a light table illuminated with red light
Soap bubble dome on a light table illuminated with blue light
When a bubble is illuminated with both red and blue light at the same time it is possible to see both colors (red and blue individually), absence of both colors (black), and a mix of the colors (magenta).
Soap bubble dome on a light table illuminated with red and blue light
The color of a soap bubble therefore depends on the thickness of the soap film. Many colors can be seen when the bubble is illuminated by all colors (white light).
Soap bubbles domes on a light table illuminated by white light
If we take a closer look at a soap film hit by a ray of light it is found that the ray will be partly reflected and partly transmitted (go through). The transmitted part of the ray will be reflected at the opposite side of the water layer of the soap film. The figure presents the most important rays of light in this relation. The interaction between the reflected light rays gives the beautiful colors of soap bubbles.
Simplified illustration of the reflection of light in a soap film
The rays of light enhance or dampen each other depending on the thickness of the soap film. Therefore it is possible to use the color in a given place to estimate the thickness of the soap film.
The colors of the soap bubbles come from the phenomenon, thin film interference
The colors of the soap bubbles come from the phenomenon, thin film interference
After the reflection in soap bubbles, the light will be polarized