Step-by-step explanation:
Red cabbage contains a water-soluble pigment called anthocyanin that changes color when it is mixed with an acid or a base. The pigment turns red in acidic environments with a pH less than 7 and the pigment turns bluish-green in alkaline (basic), environments with a pH greater than 7.