We detect light via cones
Inside our eyes are three different kinds of light-sensitive cells called cones, which are each tuned to a different range of frequencies. We call them S, M, and L for short, medium, and long wavelength cones, though they are sometimes also called blue, green, and red cones.
Above, you are looking at the normalized cone response diagram from Stockman & Sharpe (2000), which shows how sensitive each cone is to different frequencies of light.
Basically, when your eyes recieve a say 580nm photon, your brain will get a strong L signal, a medium M signal and no S signal. The brain then goes, hey I know this, this is yellow!
