Text color merging with progress bar


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,


Here’s what I want,


Any brilliant idea ?