When you want to compliment someone's hair, and the person you're complimenting is right in front of you, then you can say: Saya suka rambutmu or Saya suka rambut Anda.
But when the person isn't there, you can say: Saya suka rambutnya or Suka rambutnya.