Pharrell Williams' Grammy Awards hat will be displayed in a museum.

The infamous headwear - a bold Vivienne Westwood Buffalo hat - sported by the 'Happy' hitmaker at this year's awards ceremony was later sold to fast food restaurant chain Arby's at a charity auction for over $40,000 and will now go on loan to Washington DC's Newseum on August 22.

The hat made headlines following the star-studded evening when Arby's entered into a Twitter exchange with the singer after paying $44,100 for the garment on eBay to benefit his teen charity One Hand to Another.

Pharrell wrote on Twitter: ''Thank you to whoever bought my Grammy hat on @eBay for $44,100. Your donation benefits From One Hand to Another.(sic)''

Arby's - whose corporate logo is a 10-gallon hat, bearing a strong resemblance to the one worn by the singer - jokingly tweeted back: ''You're welcome. We're HAPPY to support a great cause & get our hat back. Good luck at the #Oscars tonight! (sic)''

The accessory has been accepted by the museum as part of a short-term exhibit to reflect the impact of social media on the news.

Chris Fuller, the vice president of brand and corporate communications at Arby's, told The Washington Post: ''The post-Grammy's Twitter exchange between Arby's and Pharrell about his hat was completely unexpected and has just become this remarkable moment in pop-culture this year.''