Extended data:
Acid-base indicator is a kind of organic weak acid or organic weak base with complex structure, which can be partially ionized into indicator ions and hydrogen ions (or hydroxide ions) in solution. Its molecules and ions show different colors due to structural changes, so they show different colors in solutions with different pH values.
References:
China's "Magic Acid-base Indicator"