The color of complexes arises from the absorption of specific wavelengths of light due to electronic transitions between d-orbitals, which are split in energy by the ligand field. These transitions are influenced by factors such as the metal ion, its oxidation state, and the nature of the ligands, leading to a wide variety of observed colors in coordination compounds.