The splitting of white light into its constituent colors when passed through a refracting medium, like a glass prism, is known as dispersion of white light
Different colors of white light have different speeds in the refracting medium, so they bend through different angles inside the prism. Hence, this is the cause of dispersion