when a complex ion is formed, the d orbitals split in energy.
wavelengths of light are absorbed, to excite an electron to the higher energy d orbital (from ground to excited state).
the energy of the light absorbed corresponds to the energy gap between the ground and excited states — the larger the splitting gap, the greater the energy gap and hence the frequency of light absorbed:
you see the complementary colour to what's absorbed