What do you think causes the formation of color in the test tube during the reaction between copper and nitric acid?

Which color? And it depends on the concentration of the nitric acid.

Hint: Don't try to breathe the brown gas.

http://www.angelo.edu/faculty/kboudrea/demos/copper_HNO3/Cu_HNO3.htm