Different wavelengths of light (different colours) are refracted by different amounts. This means that if white light, which has all the colours, is passed through a triangular prism then each colour will bend at different degrees. This allows us to see the different colours in white light.