Why Do Succulents Change Colour?

Succulents change colour under stress. They change different colours depending on the succulent you have, I have a Portulacaria and it has started to turn a dark shade of purple, same with my Christmas Cactus because of changes to the amount of sunlight it gets.