Anthocyanin is a pigment that reflects the red to blue range of the visible spectrum. It is often observed in the plant kingdom, where it serves to color anything from fruits to the autumn leaves. It can be used as pH indicator because it changes from red in acids to blue in bases.