The science
Brus model for a spherical nanocrystal: E(R) = E_g + (hbar^2 pi^2 / 2R^2)(1/m_e + 1/m_h) - 1.786 e^2/(4 pi eps0 eps_r R). The middle term is the particle-in-a-sphere (l = 0) ground state, equivalent to a 1D box of width R for the radial function; the last term is the electron-hole Coulomb attraction. Bulk parameters are literature-order values: CdSe 1.74 eV, 0.13/0.45 m0, eps 10.6; InP 1.35 eV, 0.08/0.64, 9.6; PbS 0.41 eV, 0.09/0.09, 17.
Photon wavelength is lambda = 1240 eV nm / E. Simplifications: infinite barrier, parabolic bands, no surface states or shape effects; the model is least reliable below ~1.5 nm and for PbS (strong non-parabolicity), so PbS values are indicative. Colours are an approximate spectrum-to-RGB conversion; infrared is shown as a dim magenta glow.