Many plants or plant parts contain chemicals from the naturally colored anthocyanin family of compounds. They are red in acidic solutions and blue in basic. Anthocyanins can be extracted with water or other solvents from a multitude of colored plants and plant parts, including from leaves (red cabbage); flowers (geranium, poppy, or rose petals); berries (blueberries, blackcurrant); and stems (rhubarb). Extracting anthocyanins from household plants, especially red cabbage, to form a crude pH indicator is a popular introductory chemistry demonstration.
Litmus, used by alchemists in the Middle Ages and still readily available, is a naturally occurring pH indicator made from a mixture of lichen species, particularly Roccella tinctoria. The word litmus is literally from colored moss in Old Norse (see Litr). The color changes between red in acid solutions and blue in alkalis. The term litmus test has become a widely used metaphor for any test that purports to distinguish authoritatively between alternatives.
Hydrangea macrophylla flowers can change color depending on soil acidity. In acid soils, chemical reactions occur in the soil that make aluminium available to these plants, turning the flowers blue. In alkaline soils, these reactions cannot occur and therefore aluminium is not taken up by the plant. As a result, the flowers remain pink.
Another natural pH indicator is the spice turmeric. It turns yellow when exposed to acids and reddish brown when in presence of an alkalis.