Different molecules absorb radiation of different wavelengths. An absorption spectrum will show a number of absorption bands corresponding to structural groups within the molecule. For example, the absorption that is observed in the UV region for the carbonyl group in acetone is of the same wavelength as the absorption from the carbonyl group in diethyl ketone.
....
The absorption of UV or visible radiation corresponds to the excitation of outer electrons. There are three types of electronic transition which can be considered;
Transitions involving p, s, and n electrons
Transitions involving charge-transfer electrons
Transitions involving d and f electrons (not covered in this Unit)