Is there a way to tell if a sprite is touching a specific color on the screen, maybe given as a hex code. I know you can do
pygame.sprite.collide for sprites, but how can you do this for a specific color on the whole screen?
Without knowing more about your game and why you want to do this, you might go about it this way:
At initialization, for every graphic drawn in your game, run it through a filter to find if they have that color in them at all. If it does, set a flag "hasThatColor" on the sprite and make a copy of them where you clear all pixels except the ones in that color.
In the main loop of your game during collision detection, look for the flag "hasThatColor" and if that flag is set, collide using the alternative sprite. It will of course only hit when a pixel is there of that color.