This purple is made of anthocyanins which is also included in blueberries for instance and "why hydrangea changes in seven colors—the scientific wonders about the colour of the flowers" Kousaku Takeda, PHP Research Institute explains in details.