Coumarin derivatives have gathered major attention largely due to their versatile utility in a wide range of applications. In this framework, we report a comparative computational investigation on the optoelectronic properties of 3-phenylcoumarin and 3-heteroarylcoumarin derivatives established as enzyme inhibitors. Specifically, we concentrate on the variation in the optoelectronic characteristics for the hydroxyl group substitutions within the coumarin moiety. In order to realize our aims, all-electron density functional theory and time dependent density functional theory calculations were performed with a localized Gaussian basis-set matched with a hybrid exchange–correlation functionals. Molecular properties such as highest occupied molecular orbital (HOMO) and lowest unoccupied molecular orbital (LUMO) energies, vertical ionization (IEV) and electron affinity energies, absorption spectra, quasi-particle gap, and exciton binding energy values are examined. Furthermore, the influence of solvent on the optical properties of the molecules is considered. We found a good agreement between the experimental (8.72 eV) and calculated (8.71 eV) IEV energy values for coumarin. The computed exciton binding energy of the investigated molecules indicated their potential optoelectronics application.