Light is a form of radiation and it travels in waves. When light goes through a prism, it is separated into its component colors. Each color you see has a different wavelength.