How do I change the color of parts of a sprite?

I want the player to be able to change the color of their sprite character’s clothing but I don’t want to change the color of the boots and helmet. how do I do this?

Appart from designing it in a way that these may be separate sprites, like a 2D skeletal rig

maybe this question and its answers will help.

The idea is that you create a new sprite material in which you mask out and replace the values(colors) of certain areas of the original sprite

Hope this helps at all :s

Here is a tutorial on how to change individual components of a texture file on your character or object. I go through changing the color of both your overall single material or individual components as needed: