The antennae help the crab hid from predetors and get food. The antennae can also detect if predetors are around.
The crab color is also helpful because it helps crabs camouflage in the (sand)enviroment.camouflage helps them blend in with sand so they wont be snatched up by predators(seagulls) flying in the sky.