- Red cabbage contains the pigment anthocyanin, which can be used as a natural pH indicator. Boiling and steeping cabbage produces a purple liquid that changes color in acidic and basic solutions.
- When the cabbage indicator solution is added to lemon juice, vinegar, or other acids, it turns red or purple, indicating an acidic pH below 7. When added to bleach, a strong base, it turns greenish-yellow, showing a basic pH above 7.
- The color change occurs because the anthocyanin pigment absorbs and reflects different wavelengths of light depending on whether the solution is acidic or basic, based on its hydrogen ion concentration.