Changing text color according to background

Hey, so ccurrently my header texts are black, due to dark kbackground color i want it to change its color when it clash with dark background. for reference is this website.
https://studioongarato.com.au