The sentence "The man in the gray suit tipped his hat" is a direct object. Hat is a direct object. In case you didnt know, Direct Object means a noun phrase denoting a person or thing that is the recipient of the action transitive verb.
So your Answer will be Direct Object.
Hope this helped :) Have a great day