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
@marcedwards unfortunately orgs being held to (or going for) wcag AA don’t have a choice.
@nesevis If it’s due to regulations, I get it. I’d still use APCA for testing, but also make sure WCAG 2 is met, where required.

@marcedwards @nesevis

APCA substantially exceeds WCAG2 contrast in terms of actual accessibility, especially for dark mode.

WCAG 2 contrast SCs are essentially unusable for dark mode, and can be harmful to actual accessibility & readability. The fact that the EU is putting WCAG2 contrast into law is unfortunate.

WCAG 2 contrast is not based on any relevant readability research. WCAG 2 contrast is not peer reviewed, and the statements made in the understanding doc lack scientific support.

@marcedwards @nesevis

The few places APCA passes colors that WCAG 2 contrast rejects, are cases where the rejected colors are actually better for those with color vision deficiency.

In other words, WCAG 2 contrast isn't just wrong, its results can negatively impact readability.