ROY G BIV says that purple (violet) is a part of the visible spectrum.

I have a prism in my study window, and it projected all the colors - red, orange, yellow, green, blue (cyan), indigo (dark blue) , and violet on the floor. I tried to take a picture, but yellow & green were too bright and washed out the other colors.
Infrared is wavelengths longer than red, and ultraviolet is wavelengths shorter than violet.