Despite persistent rumors, Emma Watson did not wear a wig for the final Harry Potter film. She grew her hair out naturally for the role, and the hair department styled it to match Hermione's established look.
Watson famously cut her hair into a pixie cut shortly after filming wrapped in 2010—a dramatic change that would have been unnecessary (and risky for continuity) if she'd been wearing a wig throughout production.
The length and texture in the film are her own, styled by the talented hair team to maintain character consistency across the decade-long franchise.