The color of a non-luminous, opaque object depends upon the color of the light reflected by it. The color of the reflected light depends upon the color of the incident light.
Let us now see what happens when white light is incident on a non-luminous opaque object.
When colored light is incident on a white object it does not absorb any color and the light falling on it is reflected. If colored light is incident on a colored object it absorbs the light and the object appears black as no color is reflected.