The index of refraction in a material isn't always the same for every wavelength. This is how prisms split white light into so many colors.
License: CC BY-NC-SA by Khan Academy