Phenolphthalein is used in toys, for example as a component of disappearing inks, or disappearing dye on the "Hollywood Hair" Barbie hair. In the ink, it is mixed with sodium hydroxide, which reacts with carbon dioxide in the air. This reaction leads to the pH falling below the color change threshold as hydrogen ions are released by the reaction:
:OH + CO → carbonate| + H.
To develop the hair and "magic" graphical patterns, the ink is sprayed with a solution of hydroxide, which leads to the appearance of the hidden graphics by the same mechanism described above for color change in alkaline solution. The pattern will eventually disappear again because of the reaction with carbon dioxide. Thymolphthalein is used for the same purpose and in the same way, when a blue color is desired.