how can we get the color of a pixel?

Hello
I’d like to take over the color of a selected pixel. Is it possible to get it and then to change it by that way.
thank you.

Use glReadPixels to read the pixel, modify it as you want, and then put it back with glDrawPixels.