A human observer is able to recognize the color of objects irrespective of the light used to illuminate them. This is called color constancy. A digital camera uses a sensor to measure the reflected light, meaning that the measured color at each pixel varies according to the color of the illuminant.