I have 3 object in the scene,
1 object as color palette,
1 object as button
1 object to fill with color
I want to define a condition in which after touching button object, color of object (which considered to fill with a color) get checked and if it is match with color of color palette, shows a message accordingly.
Develop games in your browser. Powerful, performant & highly capable.
You didn't give enough information about your game.
That third sprite - is it some random user-defined image? Then you'll have to use Canvas plugin.
If this is like "guess the color" game, where you can define the color of third sprite, you can make it with "Set color" effect.