Is it illegal to keep the health code green and orange?

It's not illegal. It is normal that the green code does not change color.

Green code is what we call health code, and only green means that we are healthy.

If the display is not normal, refresh and log in again. Health codes are dynamically managed in three colors: green code, red code and yellow code: those who display green codes will enter and leave Hangzhou through bright codes and scanning codes in the city.

If red team is displayed, it needs to be in the home collection or isolated for 14 days, and it will be changed to a green code after continuous declaration of health punch 14 days. If the yellow code is displayed, it should be concentrated or isolated at home within 7 days, and it will turn into a green code after the continuous declaration of health punching is normal for no more than 7 days.