It isthanks to anthocyanins, colored molecules called flavonics, that the petals have this blue pigment. This molecule change colour according to the pH environment. In an acidic pH below 7, the infusion of Butterfly Pea flowers will turn red-pink. In a neutral pH, it will be blue and in a basic pH, higher than 7, the infusion will turn green-yellow.