I am guessing you are using Construct 3? You need to post in Construct 3 forum!
This is Construct 2 example and the "Replace color" effect works differently here.
In C2 it takes 6 parameters, each color channel separately.
In C3 it takes 2 parameters - source and replace colors as RGB values.
Change the code like this: