Hibiscus flowers have anthocyanin in them, which is what gives them their color. This pigment automatically reacts with chemicals and changes different colors depending on their acidity or basicness.