Using the CSS color-contrast() function, we're able to define our target contrast ratio. This feature is currently (18.3.2022) only available via the Safari Technology Preview browser.
Target Ratio: AA (4.5)
🚀 Use the form controls to adjust the target contrast ratio.