Created from the desiccated glands of sea snails, the colour purple has nevertheless come to define royalty. Kelly Grovier looks at how the hue shook off its unexpected source.