Text color merging with progress bar

Hi,

I’m trying to find a solution to locally change the colour of a text that is above another material (in that case it’s a progress bar).

The thing is I don’t want to change the whole text colour, see below the picture, this will be easy to understand.

Here’s what I have now,

299799-textcolor.png

Here’s what I want,

299800-textcolor2.png

Any brilliant idea ?

Did you find a solution for this?