This took me a while to figure out :)
I'm not color blind, but deficient, and I really like modus-themes deuteranopia variants for that. With flyover, it was too much tone-in-tone, though.
No tint:

Lighter (default):

Darker:

I'd like to use yellow background with black text for warning (which I could get with 100% 'darker' tint), and red background with white text for errors (which I could get with 100% lighter tint), but I can't control both.
I believe I'd be able to make a PR that uses face :foreground for text and :background for, well, the background if both are present. If either is missing, assume the only color there is the background which then is tinted.
Is this in scope of the project?