Four dicyanopyrazine-related cyanoheterocycles have been synthesised and characterised; they show different absorption maxima values and molar absorptivity in absorption spectra. HOMO and LUMO energy levels have been obtained by electrochemical measurements and DMol3 calculation and show little difference in HOMO values but big differences in LUMO values. Their UV-Vis absorbance and fluorescence spectra have been investigated in chloroform and toluene and their aggregation decreases as the concentration decreases in toluene.