How to blend color using mask with object?

you need to distinguish between a simple true/false mask and a grayscale alpha channel with per-pixel information.

your alpha channel needs to be sensitive to the hair’s brightness. black hair takes less color.