To determine which compound gives a colored solution when dissolved in water, we need to analyze the chemical nature of each option:
Considering the above explanations, the compound \(\(CuCl_2\)\), when dissolved in water, gives a colored solution due to the d-d transition of copper(II) ions. This makes option \(B: CuCl_2\) the correct answer.