The failure of William Henry Perkin to manufacture synthetic quinine, produced, in the 1890s, a successful and popular mauve dye.
Perkin’s story is a warning of the potential perils of targeted research. Had he been working in a commercial environment, it’s likely that because the purple dye wasn’t quinine, his further investigations would have been thought to be an expensive waste of time.