In the rainbow spectrum, there are seven colours known as VIBGYOR and each colour has a different wavelength.
VIBGYOR – Violet, Indigo, Blue, Green, Yellow, Orange and Red
Red – Longest wavelength of the colour.
Violet – Shortest wavelength of the colour.
Also, read about what is the difference between violet and purple.