The refractive index of glass is inversely proportional to the light rays’ wavelength. Since the wavelength increases on moving from violet to red in VIBGYOR, the colour red has a maximum wavelength while the colour violet has a minimum wavelength. Therefore the refractive index of glass is maximum for violet colour.