It's a crime for which the sole or principal motivation is prejudice and racial (or religious, etc.) hatred.
If a X dude assaults a Y dude to steal him, it's not a hate crime. If he does it because he's Y, it's a hate crime.