RGB Color versus Wavelength
While light of particular color consists of photons of a single wavelength 1, our eyes can be tricked into seeing that same color by mixing red, green and blue light (RGB) in different proportions. Everyone learned this in elementary school art class when mixing paints or crayons, and this is the basis of how the monitor you are viewing this page shows different colors 2.
The image below shows the color corresponding to each wavelength in the visible spectrum from 380 to 780 nm. The formula to generate them is surprisingly non-intuitive. The code to generate this image can be found on github.

-
or, equivalently, its inverse, the frequency ↩
-
mixing paints is an example of subtractive mixing, while computer displays use additive mixing to generate colors ↩