Using the Replace Color effect, right? This is how I did it:
I have the 3 Replace Color effects on it, one for each color, and the R,G,B Source is already set to the default colors of the sprite.
I also have the palette values on a CSV table, that's the whole bold part of the event, getting the correct color from the CSV
And this is the result: