The potential energy surfaces of dyes displaying strong excited-state intramolecular proton transfer (ESIPT) are investigated with the help of ab initio tools. It allows us to rationalize the interplay between the excited-state transition free energies and the observed optical signatures.