Using data and code from: https://graphics.geometrian.com/research/spectral-primaries.html
See their reference implementation for details (MIT license): https://github.com/geometrian/simple-spectral
This converts sRGB triplet into spectral reflectance, then combines two curves with weighted geometric mean to produce a "mixed" colour.