When white light passes through a prism, different colors deviate by different angles due to their different wavelengths. Blue light has a shorter wavelength than other visible colors, causing it to bend more and experience the largest angle of deviation. In contrast, red light bends the least.