Scroll down to change the color

The original color of the Header is green, turns to white once users scroll up, how can I make the Header’s color back to green when scrolling down?

Thank you!