Is there a way to change the color of an entire group of pixels?

Is there a way to change the color of an entire group of pixels? Let’s say a group of my leaves on a tree or a special shade of green, and I want all those pixels to change colors at the same time, to say Autumn gold, so I place them in a group and change those color at will. Is there a way to do this?

there are a few ways, most of it is disabling the countinuous option in brushes