A way that i did it was get the RGB color right next to the sprite. It works, but can be innacurate sometimes.