The purple coloration is the result of anthocyanins, which are water-soluble pigments that are produced in response to stressors like low temperatures, high light levels, or nutrient deficiencies.