Setting browser. display. use_document_colors or browser.display.document_color_use to 0 fixes things.
It does break some stuff, like voting buttons on hn. Im happy with the tradeoff.
https://contrastchecker.com/?c=ffffff&b=444444
Reply on news.ycombinator.com