The optical properties of materials are determined by its electronic and vibrational spectra. And these spectra in nanoparticles differ from bulk materials. The simplest physical model of a quantum-size effect is an electron in a quantum well with infinite potential barriers. The narrower the quantum well, the greater the energy of the electron. Phonons are also localized in the nanoparticle and their spectrum differs from the spectrum of bulk material.