Weird purple dot on my dogs ear that randomly appeared

This purple dot randomly appeared on my dogs ear 2 days ago. It’s the ear that he always scratches, does anyone know? could this be an infection?

This purple dot randomly appeared on my dogs ear 2 days ago. It’s the ear that he always scratches, does anyone know? could this be an infection?