How it works
Hair Color first finds each clear face, then runs a six-class portrait mask on an enlarged head-and-shoulders crop in both the original and mirrored directions. A region is accepted only when strong hair evidence is connected to the head and wins against face skin, body skin, clothing, accessories, and background. The accepted edge is aligned to source detail, then color is changed in LAB while the original luminance variation preserves strand texture. Pixels outside the verified hair mask are copied unchanged in a lossless PNG; the tool refuses uncovered-hair uncertainty instead of regenerating the face.

























