Two novel carbazole derivatives, 3-acetyl-9-n-hexylcarbazole (AHCZ) and 3, 6- diacetyl-9-n-hexylcarbazole (DHCZ) were synthesized through Friedel-Crafts reaction. The compounds were characterized by IR spectra, 1H NMR, MS and elemental analysis. UV-visible spectra of AHCZ and DHCZ were measured and compared with those of their precursors, 9-hexylcarbazole(HCZ) and carbazole(CZ). DHCZ and AHCZ exhibited strong absorption band, revealing the extent of pi conjugation in the system. TD-DFT method was performed to analyze the electronic absorption spectra of AHCZ and DHCZ, and the calculated excitation energies and oscillator strengths were compared with the experimental results.