Use “Die Person trägt einen Hut.” for “The person is wearing a hat.” Hut is masculine, so use einen.