Terraria item ID 1118. Terraria 1.4.5.7.
The Purple Mucus is a dye material that is dropped by Sea Snails, which only spawn in the Ocean biome. Its sole purpose is to make Purple Dye.
Description from the Terraria Wiki.
Dungeon Guardian: Terraria crafting trees for every item