Color Relativity: The Physics of Perceived Value
Your final color is simply the intersection of those two things. If you understand the light source, you know how to shift your color. If you understand the local color, you know your starting point. If you ignore either of these, your colors will look disconnected and flat.