The California sea hare, Aplysia californica, has a combination of defense mechanisms including the release of purple ink and opaline from glands. The ink acts as a smoke screen while the opaline confuses the predator and causes them to try to eat the ink cloud. – WTF Fun Facts
Source: https://en.wikipedia.org/wiki/California_sea_hare
