Why is the hero dressed in white and the villain dressed in black?

white is a pure and good color and black usually stands for darkness or evil