CuSO4.5H2O exists as complex and when weak field ligand approaches the the copper ions , splitting up of d orbitals take place and then only d-d transition takes place which provides the colour. when the salt is heated the water molecule is lost and now the d orbitals r no longer split and hence it looses its colour
RATE ME IF UNDERSTOOD!!