The spectral and luminescent properties of trans-2-(4’-dimethylaminebenzylideneacetyl)-5,5-dimethylcyclohexane-1,3-dione and 10-hydroxy-3,3,6,6,9-pentamethyl-1,2,3,4,5,6,7,8,9,10-decahydroacridine-1,8-dione have been studied depending on the acid-base properties of the medium. It has been shown that the first compound can exist in the form of three different structural forms, while the second compound exhibits dual fluorescence in solvents with a high basicity parameter. These properties of chromophores can be used in chemical analysis to indicate the acid-base equilibrium of the medium.