The human eye adapts to changes in lighting so that white objects look white under all kinds of lighting. Digital cameras determine white from the color temperature of lighting and, based on this, apply image processing to make color tones look natural in your shots.