Hanesbrands has agreed to sell its Champion brand to Authentic Brands Group in a transaction valued at $1.2 billion, the company announced Wednesday.