A couple of things, in some cases depending on the angle that the sunlight hits its head and the angle you it at can make the colour look more purplish than normal. Secondly mallards are a species that interbreeds with domestic ducks and this will produce odd and strange looking plumages as well.