You don't have a cone specifically for detecting yellow, but yellow is kind of close to green and also kind of close to red, so both the red and green cones get activated, and each sends a signal to your brain saying so.