Hogwarts Legacy is canon and part of the Harry Potter timeline. No official PR sets it apart from the rest of the franchise in any way, and there’s no major conflict between what we see in the game and what we learned about the Wizarding World in previous works set in the universe.
Is Hogwarts Legacy set in the canon Harry Potter timeline?
Hogwarts Legacy is canon and is the earliest work in the Harry Potter timeline. It takes place in 1890, which is around 100 years before the events of the original seven books. So, it happens long before Voldemort’s rise and the Wizarding War seen in Fantastic Beasts and Where to Find Them.
Unlike Star Trek and Star Wars, the Harry Potter canon isn’t that complicated. No major revisions have been made to the series, and the only schisms in the timeline occur in Harry Potter and the Cursed Child, and they’re a closed loop, so they don’t affect the rest of the franchise.
So, anything you see in Hogwarts Legacy can be taken as canon unless stated otherwise by the series creator. J.K. Rowling retains the rights to the series, so she’s the arbiter of canonicity, but as of now, she hasn’t made any comments that puts the game’s canonicity in doubt.