Yellow or green filtration will burn in highlight details. Magenta or blue filters will expose the high-contrast layer, so affect mainly shadows.
The stronger the density of the filter with respect to its color, the stronger the effect will be in that particular direction. The less intense the
color, the more white light it will pass, and thus affect both layers to the emulsion. (This explanation is a bit oversimplified, but it works from
a practical standpoint). Beyond this basic set of facts, there are many variables.