Genetics and light
Simply put, cannabis can turn purple due to high quantities of a compound known as “anthocyanins”. ... Anthocyanins are a water-soluble compound which is present in some cannabis strains. The compound can turn the cannabis leaves and buds into a variety of purples and blues which may even appear dark green and black.