The TVTropes Trope Finder is where you can come to ask questions like "Do we have this one?" and "What's the trope about...?" Trying to rediscover a long lost show or other medium but need a little help? Head to Media Finder and try your luck there. Want to propose a new trope? You should be over at You Know, That Thing Where.
The closest would be either Dating Catwoman, which implies that both the hero and the villain have some feelings for each other, or All Girls Want Bad Boys, which is a gendered look at why a "good" character would be attracted to an "evil" character (with a small note at the bottom that says "Despite the gendered name, it can also be gender-inverted or applied to same-sex couples").
See also Troubled, but Cute, which is a specific type of "bad boy/girl", and Inconvenient Attraction, since most heroes probably wouldn't want to be attracted to a villain.
Edited by FactoidCow
What's the inverted version of Villainous Crush? A hero that's attracted to a villain.