how to paint and check on what color the character is standing on?

Is there a way to paint something like a block using a bullet and then check if the player is standing on a specific color or not? It would look something like the blue and orange portal 2 gels.