Grasshoppers exemplify a range of anti-predator adaptations, enabling them to avoid detection, to escape if detected, and in some cases to avoid being eaten if captured. Grasshoppers are often camouflaged to avoid detection by predators that hunt by sight. Their colouration usually resembles the background, whether green for leafy vegetation, sandy for open areas or grey for rocks. Some species can change their colouration to suit their surroundings.
Several species such as the hooded leaf grasshopper Phyllochoreia ramakrishnai (Eumastacoidea) are detailed mimics of leaves. Grasshoppers often have deimatic patterns on their wings, giving a sudden flash of bright colours that may startle predators long enough to give time to escape in a combination of jump and flight.
Some species are genuinely aposematic, having both bright warning coloration and sufficient toxicity to dissuade predators. Dictyophorus productus(Pyrgomorphidae) is a "heavy, bloated, sluggish insect" that makes no attempt to hide; it has a bright red abdomen. A Cercopithecus monkey that ate other grasshoppers refused to eat the species. Another species, the rainbow or painted grasshopper of Arizona, Dactylotum bicolor (Acridoidea), has been shown by experiment with a natural predator, the little striped whiptail lizard, to be aposematic.