When the white light passes through the prism, it gets divided into its components, and they are red, orange, yellow, green, blue, and violet. This is due to the refraction of light.