10Flavin, classified as an anthocyanin, is the pigment in red cabbage responsible for the pH-indicating behavior. This same pigment also changes color according to soil pH while the cabbage plant is growing, much like a hydrangea. Unlike hydrangeas, the coloring of a red cabbage is more akin to litmus paper, with red indicating acidic soil.