Our eyes perceive different wavelengths of light as the rainbow hues of colors. Red light has relatively long waves, around 700 nm long. Blue and purple light have short waves, around 400 nm. Shorter waves vibrate at higher frequencies and have higher energies.
Hope it helps.