Pick black or white as the ideal foreground based on WCAG contrast ratio.
Contrast ratio between this color and another: (L1 + 0.05) / (L2 + 0.05), L1 ≥ L2
hex without #
hex(a) without #
Static
Pick black or white as the ideal foreground based on WCAG contrast ratio.