Hydrophobic molecules and small molecules can pass through a membrane by diffusion.

The dye diffuses down a concentration gradient from where it is more concentrated to where it is less concentrated.

Eventually the solution reaches a dynamic equilibrium: the solute molecules continue to cross the membrane, but at equal rates in both directions.