As we know foam is white regardless of the color of the soap or shampoo.
... the foam in its entirety looks white because when light enters the soap solution, it must pass through a number of tiny soap bubbles, i.e., a number of surfaces. These countless surfaces scatter the light in different directions, which makes the foam/lather look white.
My question is that is it possible to have colorful foams? For example, can we use water insoluble pigments in the process of making soaps and shampoos in order to have colorful foams?