Answer:
When red cabbage is treated with an acid or a base, it produces anthocyanin, a water-soluble pigment that changes color. In acidic situations with a pH less than 7, the pigment turns red, whereas in alkaline (basic) situations with a pH more than 7, the pigment turns bluish-green.
Step-by-step explanation: