Axe-core uses 0.03928 for its luminance calculation. This number came from WCAG, however WCAG's number was wrong. This was corrected a while back to be 0.04045. The change is theoretical, the difference is so small that the contrast ratio won't change. But it would be good to use update axe to use the same number that's in WCAG 2.2.
This change needs to happen in lib/commons/color/get-contrast.js
Axe-core uses
0.03928for its luminance calculation. This number came from WCAG, however WCAG's number was wrong. This was corrected a while back to be0.04045. The change is theoretical, the difference is so small that the contrast ratio won't change. But it would be good to use update axe to use the same number that's in WCAG 2.2.This change needs to happen in lib/commons/color/get-contrast.js