Halogens absorb radiation in the visible region and excites electrons to higher energy levels. Thus, fluorine being smallest with maximum effective nuclear charge, absorbs high energy violet light and appears pale yellow. Iodine with large size and less effective nuclear charge, absorbs low energy yellow light and appears dark violet.