Why is copper(II) oxide green?

Copper(II) oxide is black, but when we find the percentage of oxygen in air by volume using ammonia, copper, and ammonium chloride, the color of $\ce{CuO}$ turns green. What is the reason for this?


