We learn from millions of color photos to understand how different subjects usually appear in color. When you upload a photo, we look at people, clothing, skies, plants, buildings, furniture, and other details, then choose colors that fit the lighting and scene. The colors may not be historically exact, but we design them to look balanced and believable.