Dispersion of light occurs when light passes through a medium, like a prism, and gets separated into its constituent colors. Each color has a different wavelength, which causes the light to spread out.
The violet ray is the shortest wavelength in the visible spectrum of light. Its wavelength ranges from approximately 380 nm to 450 nm, with 400 nm being a commonly cited value.
Thus, the wavelength of the violet ray in dispersion of light is around 400 nm. This shorter wavelength causes violet light to refract more than other colors when passing through a prism.