How do I automatically fix a color contrast failure?
Enter your failing foreground and background colors into PaletteKey's Accessible Color Generator. It automatically adjusts the lightness of either color using perceptual OKLCH interpolation until the exact target contrast ratio is met, while preserving the original hue and chroma as closely as possible.