 Molecules containing bonding and non-bonding electrons (n-electrons) can absorb energy in the form of ultraviolet or visible light to excite these electrons to higher anti-bonding molecular orbitals.The more easily excited the electrons (i.e.lower energy gap between the HOMO and the LUMO), the longer the wavelength of light it can absorb.