Quantum calculations were used to study UV-vis absorption properties and nonlinear optical characteristics of a variety of substituted dihydroazulene (DHA)/vinylheptafulvene (VHF) photoswitches. The absorption properties are substantially based on the position and nature of the substituent. In general, electron-donating groups cause red shifts compared to the parent compound. Any electron-withdrawing group, on the other hand, would generate a blue shift. Furthermore, the steric effect at some positions is accountable for the loss of planarity and, as a response, a decrease in electronic conjugation within the molecule, which in most cases result in blue shifts in maximum absorption. The purpose of this research is to investigate the influence of substitution at the seven-membered ring of the DHA/VHF system on the absorption spectra and nonlinear optical characteristics of dihydroazulene photoswitches. UV-vis spectra and hyperpolarizability are determined since a prospective photoswitch should have a minimum overlap of absorption spectra from both isomers. Furthermore, the differential in hyperpolarizability between DHA and VHF is critical for practical applications.