Red colour has longest wavelength and violet colour has smallest wavelength.Therefore, red colour suffers least deviation and violet colour suffers maximum deviation on passing through the prism. That is why lower end of the visible spectrum is violet and upper end of visible spectrum is red suffering minimum deviation.