Cu(NO₃)₂ solutions have a deep blue color due to the Cu²⁺ ions because of the electronic transitions within the copper ion that absorb certain wavelengths of light while Ni(NO₃)₂ solutions are usually greenish, because of the Ni²⁺ ions.
How to tell the compounds apart
As indicated above, color is one of the ways to tell the compounds apart. Another way to check is through precipitation. Adding a few drops of KOH solution to a Cu(NO₃)₂ solution will produce a light blue precipitate of Cu(OH)₂ because Cu²⁺ ions readily react with OH⁻ ions to form the insoluble hydroxide.
In contrast, adding KOH to a Ni(NO₃)₂ solution will result in a pale green precipitate of Ni(OH)₂, but it is much less noticeable and may require more concentrated solutions or standing for a longer time.