Native: fix contrast ratio to meet WCAG AA guidelines by hugovk · Pull Request #2325 · pygments/pygments

Before

The red #define _Py_SHARED_SHIFT 2 shown here, with class="cp" is #cd2828:

image

Has a contrast ratio of 3.04 which doesn't meet the WCAG AA minimum of 4.5:

image

image

And is flagged by Lighthouse:

image

After

Using Google's suggestion of #ff3a3a increases it to 4.59:

image

image

(For comparison, the AAA suggestion of #ff8888 is a bit pale, so let's go for AA.)

AAA

image