The different colors represent different mineral content in the rocks. Red is iron, yellow is sulphur, purple is calcium carbonate.