And remember, the "speed of light in the medium" depends on the wavelength of the light. This is why prisms separate light by color.