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… 🤨

@tommi @marcedwards
APCA is no longer part of WCAG3. You can still use it, but for conformance (legal, policy, etc.) reasons you will still need to follow WCAG2. It’s possible to satisfy both in most cases.