"Purple" is not a spectral color. Violet is, but the purples are a mix of violet & red, or red & blue, or such.
Red/green/blue are one set of primaries. Lots of artists working with paint use red/yellow/blue. Inkjet printers use cyan/magenta/yellow. Which colors are "primary" depends on the medium.