Even before cone cells were discovered, it was empirically found that only three distinct colors (primaries) could be mixed to produce other colors
Thomas Young (1803), Hermann von Helmholtz (1852), Hermann Grassman (1853), James Maxwell (1856) all explored the theory of trichromacy for human vision