This tutorial shows a way to blend text inverted with a background, giving control over the contrast.
It does have some limitations compared to CSS mix-blend-mode. However, this has a completely different effect and in my view gives a greater contrast.
The inspiration is from https://css-tricks.com/methods-contrasting-text-backgrounds/