A morally grey character is a hero or heroine whose actions have shades of grey: neither cleanly good nor a villain, and willing to make difficult decisions without worrying about being judged for them. The morally grey hero has become a popular trope in romance and high fantasy.
For new readers
Not the villain, not the knight in shining armour, but somewhere in between.