Two small molecular chromogenic sensors (azine MS-1 and azomethine MS-2) were synthesized for the acid-base discoloration and optoelectronic investigations. It was found that the color of both sensors in solution and in the solid state changed obviously from yellow to purple and blue after the treatment with an acid, which could be easily detected by the naked eye. Furthermore, single-crystal conductance of MS-1 and MS-2 could be significantly enhanced after treating with the flow of HCl gas. On the other hand, MS-2 showed relatively good film-forming ability and could be used as a hole transport material (HTM) in perovskite solar cells, exhibiting a power conversion efficiency (PCE) of 6.68 %. To the best of our knowledge, this is the first demonstration of perovskite solar cells including a HTM based on a low-cost Schiff-base structure. Scheme 1 Synthetic route to azine MS-1 and azomethine MS-2. † Electronic Supplementary Information (ESI) available: Crystallographic data of MS-1 and MS-2, TGA diagrams, detection linear ranges, ESI-MS, 1 H NMR, fluorescence emission spectra, I-V curves, calculated UV-Vis spectra, electron lifetime and space charge limitation of current J-V characteristic for related compounds. CCDC: 1039787-1039788. For crystallographic data in CIF or other electronic format See Graphic Abstract MS-1 and MS-2 exhibit visualized acid-base discoloration and MS-2 could be used as a low-cost HTM in perovskite solar cells.