Almost any flower, fruit, or plant part that is red, blue, or purple contains pigments called anthocyanins, these compounds change colour when in acidic or alkaline (basic) solutions.
The pH scale is exponential, a one unit change on the pH scale corresponds to a ten-fold increase in the concentration of H+ ions, meaning each pH value that is less than 7 is ten times more acidic than the previous one.