Change texture color on certain part of texture?

Hey everyone, so I was wondering if there was any way I could get the color code for a certain part of a texture and change the color of that part of the texture to another color code.
Please can someone let me know as this would be so useful to me, thank you!