How to make a an object solid if it and the player character is the same colour?

Does anyone know how to make the PLAYER who is RED able to stand on or collide with a MESH that’s RED too, if its the same colour exactly?

Are you doing this in a 2D map? If not, just use the game’s default collision.