2025 should be the year you stop using WCAG 2 colour contrast testing, and switch to APCA. This article is a few years old, and covers everything well. https://blog.datawrapper.de/color-contrast-check-data-vis-wcag-apca/
It's time for a more sophisticated color contrast check for data visualizations - Datawrapper Blog

The WCAG contrast requirements are flawed. Here's what a new approach could mean for data visualizations.

Datawrapper Blog

Woooow @marcedwards, thanks for sharing!

I always felt that some WCAG 2 color #a11y results were weird, but I never dove deeper. This shines a completely different perspective, super insightful!

The problem now is that benchmarking and testing services do still use #WCAG2 as their reference, so, absurdly enough, if we switched to #APCA we would get worse acccessibility scores… 🤨

The Easy Intro to the APCA Contrast Method

This is the APCA project repo on GitHub.Documentation linked below.

APCA