Green has its own wavelength, 500–565nm. It’s pink that doesn’t have one and is a mix between violet and red wavelengths.
i mean you’re technically almost correct, pink doesn’t have a wavelength because it’s just white with a bit more red in it.
You’re thinking of magenta, which is equal parts BLUE and red, violet is another word for purple which is also red and blue but darker and more on the blue side.
Violet is not purple since violet is a spectral color and has its own wavelength. While purple is a secondary color. If violet was also a secondary color made from blue and red you wouldn’t see it in a rainbow. https://en.wikipedia.org/wiki/Spectral_color
“In the RGB color model used in computer and television screens, violet is produced by mixing red and blue light, with more blue than red.”
“Violet is closely associated with purple. In optics, violet is a spectral color (referring to the color of different single wavelengths of light), whereas purple is the color of various combinations of red and blue (or violet) light,[5][6] some of which humans perceive as similar to violet. In common usage, both terms are used to refer to a variety of colors between blue and red in hue.”
https://en.wikipedia.org/wiki/Violet_(color)