My friend was using madder to dye her wool. She said that changing the pH by adding bicarbonate of soda changes the dye colour. That sounds to me like a more lasting version of the red cabbage indicator. The reaction must change the electron energy levels in the molecule so that different photons are reflected back.