cowboy in the black hat

a villain. In early black-and-white American cowboy movies, the villain always wore a black hat while the hero always wore a white hat.