The colors in the rock form when chemical elements that are mixed in the lava come in contact with air and water after being expelled from the earth.