Respect forced colours mode (Windows High Contrast and similar). The `forced-colors` media feature lets you repair UI the user's palette would otherwise flatten — without overriding their choice.
CSS Media Queries Level 5 — forced-colors
CSS Color Adjustment Module Level 1 — forced-color-adjust