When white light enters a prism, it gets split into its constituent colours. This is due to
High density of prism material
Because μ is different for different λ
Diffraction of light
Velocity changes for different frequencies
For different colours μ changes so deviation of different colour is also different.