We show that a quantum-mechanics/molecular-mechanics strategy based on ab initio (i.e., first principle) multiconfigurational perturbation theory can reproduce the spectral properties of a tryptophan residue embedded in the contrasting hydrophobic and hydrophilic environments of parvalbumin and monellin, respectively. We show that the observed absorption and emission energies can be reproduced with a less than 3 kcal mol-1 error. The analysis of the computed emission energies based on a protein disassembly scheme and protein electrostatic potential mapping allows for a detailed understanding of the factors modulating the tryptophan emission. It is shown that for monellin, where the tryptophan is exposed to the solvent, the fluorescenc...