We present an ab initio investigation of the optical properties of 3-tert-butylcyclohexene in both its conformers. The optical spectra, here the photoabsorption cross section, have been obtained within density-functional theory at the independent-particle level, and within time-dependent density-functional theory. The optical spectra of the two conformers show small but visible differences, hence suggesting that optical absorption experiments can discriminate among the two molecular geometries.