Hello,
You can do something like that by using the magic wand. You can adjust the tolerance to specify how close the color must be to the color your clicking. If you click multiple times, in your example in each letter, the letters will be added to the selection.
Afterwards, you can use the menu Color > Colorize to change the color, or use any other color function.
Regards