Change nav link colors on different backgrounds

With Webflow, is it possible to have the nav links change color based on background as is done here?

Thanks!