Description
Milk of magnesia, universal indicator, and a few drops of HCl make a reaction that sweeps through every color of the rainbow. Acid-base chemistry and Mg(OH)₂ solubility make it work. What's happening: a bit of Mg(OH)₂ dissolves, releasing basic hydroxide ions that causes a pH shift to ~10 (violet). Added HCl neutralizes the hydroxide, and the excess HCl causes a pH shift to ~3 (red). The solid Mg(OH)₂ then reacts with the HCl, neutralizing it and bringing the pH to 7 (green). Any remaining Mg(OH)₂ brings the pH back up to pH 10+.
Demo and explanation by Tommy Technetium, chemistry professor.
