Solvent Effects on the UV-visible Absorption Spectra