Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Text color according to background color

  • Text color according to background color

  • Yael Zur

    January 27, 2021 at 12:30 am


    Can I change color on a moving text acording to background?
    I have a background in green and yellow and text that move from bottom to top.
    I want to make the letters green on the yellow part of the background and yellow on the green part. how do I do that?
    I tried to use color difference key effect – but didn’t understand how to use it.
    Can anyone help?
    Thanks and best regards,

  • Graham Quince

    January 27, 2021 at 10:17 am

    Try this:

    Set your text colour to Red. And the text layer’s Transfer Mode to Difference.

    You might get away with this if the greens are not too strong. Failing that, i think you’ve be looking at duplicating your background and flipping it, then using the text layer as an Alpha Matte.

  • Yael Zur

    January 27, 2021 at 2:27 pm

    Thank you very much.

    my shades are actully very strong so it didn’t work with red, but I found a color that gave me two tones of brown wich worked for me. so blending mode did help.

    Thanks and have a lovely day 🙂


  • Kevin Camp

    January 27, 2021 at 9:21 pm

    If you wanted your original concept, with just green and yellow, you could try working in black and white, then colorize it with an adjustment layer. How successful this method will be will depend largely on how much contrast you can create in you background. If you can make it truly black and white vs shades of gray, then it should be pretty successful.

    So step one would be to make your background B&W, if you can simple make the green parts black and the yellow white, then you’re ready to go. If it’s not quite that simple, then I’d try Threshold and adjust it until you separate those colors into black or white. Possibly using the tint effect (to make the background gray scale) and then levels, curves or other effect to adjust contrast as needed may work.

    Once you have a B&W background, you can simply do what Graham mentioned, but use white text and set the blending mode to Difference. This should make any text over white black and any text over black white. If there are shades of gray the text will also become a shade of gray, so that’s why contrast is important in the background.

    The you can colorize everything back to yellow and green with an adjustment layer and adding the tint effect. Click the white chip and set it to yellow and set the other chip to green.

Viewing 1 - 4 of 4 posts

Log in to reply.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy