Purple dye is obtained by combining blue dye with red dye in a crafting table. It is primarily used to dye wool, leather armor, beds, glass, terracotta, and candles. Purple dye can also be used in banner patterns, firework stars, and shulker box customization.