DrJynx86answered grow question 4 years ago Genetics, nutrients and lights might give the purple hue to stems and leaves, also cold temperatures.
On peppers/hot peppers, purple pigment is generated because light is too powerful sometimes (is a good sign) and in cannabis too, it's probably more efficient than green at that stage of growing.