The purple pigment cannabis plants produce instead of chlorophyll — genetics plus environmental triggers (cold, maybe pests, maybe light) drive expression.
Jeremy defines anthocyanin on camera and notes ongoing debate about whether it's a light response or a pest defense response. Clear that it's genetic because in the same environment some plants express and some don't. Colder temperature also pushes more purple.