Piano is a western musical instrument, and its overall style is more formal. The general audience should also meet the formal requirements. If possible, men should wear suits, and women can wear western-style clothes and long black dresses.
Of course, there is one exception. If you are listening to a piano concert held in China to promote your traditional culture, and the repertoire is mainly ancient costumes, then it is in line with the overall requirements for you to wear Hanfu.