Final answer:
The color of anhydrous nickel chloride is yellow because it absorbs higher-energy violet light, while nickel chloride hexahydrate appears green because it absorbs lower-energy red light.
Step-by-step explanation:
The color of coordination compounds is determined by the energy levels of the d orbitals of the central metal atom and the specific ligands coordinated to it. In the case of anhydrous nickel chloride (NiCl2), even though chloride ions are weak field ligands, the compound appears yellow because it absorbs higher-energy violet light.
On the other hand, nickel chloride hexahydrate (NiCl2·6H2O) appears green because it absorbs lower-energy red light, despite the presence of water, a strong field ligand.