Why GitHub’s Dark Mode Colors Score Higher on Official Tests — Yet Look Dimmer to Human Eyes

All 5 semantic colors in GitHub’s official Dark Mode score HIGHER on old WCAG tests (up to 7.5:1) yet drop 21 to 33 points lower on human-eye readability.

2026 Key Statistics & Quick-Cite Summary

Short version: In GitHub’s official color system, Dark Mode green, amber, blue, red, and muted text all beat Light Mode on the old 2008 contrast test (scoring up to 7.5:1!). Yet under modern human-vision science (APCA), every single one drops 21 to 33 points lower in readability — which is why GitHub ships a separate "Dark High Contrast" theme.

  • 5 out of 5 — GitHub Dark colors scoring higher on old tests yet dimmer to human eyes (ColorQueue GitHub Primer Audit)
  • −32.8 pts — Drop in human-eye clarity for Dark Mode red vs. Light Mode red (APCA Human-Vision Comparison)
  • 7.45 : 1 — Dark green’s huge old-test score — even as human clarity drops 22.5 pts (GitHub Primer v10 Official Tokens)

GitHub is built by some of the best web engineers in the world. Yet when we compared GitHub’s official Light Mode and Dark Mode colors side by side, every single Dark Mode color scored HIGHER on the classic legal test — while looking noticeably dimmer to human eyes.

The Dark-Mode Paradox Even Top Tech Companies Face

In Light Mode, GitHub’s five main text colors (blue, red, green, amber, and muted gray) are amazingly consistent — all scoring right around 73 to 76 on the modern human-eye readability scale.

Switch to GitHub Dark Mode, and something wild happens. On the old 2008 contrast calculator, every single color actually scores HIGHER (green jumps all the way to 7.45:1!). Yet human eyes actually perceive 21 to 33 points LESS clarity on every single one.

GitHub Light Mode vs. Dark Mode: Modern Human-Eye Readability Score (APCA)

Higher score = crisper reading. 60+ is recommended for normal reading text.

GitHub Light Mode vs. Dark Mode: Modern Human-Eye Readability Score (APCA)
ItemGitHub Light ModeGitHub Dark ModeContext
Muted Gray Text76.2 pts44.9 ptsDrops 31.3 pts in dark mode
Accent Blue Link74.9 pts43.7 ptsDrops 31.2 pts in dark mode
Success Green74.6 pts52.1 ptsScores 7.45:1 old test, yet drops 22.5 pts!
Error Red74.2 pts41.4 ptsDrops 32.8 pts in dark mode
Warning Amber73.4 pts52.2 ptsDrops 21.2 pts in dark mode

Data note: Exact APCA-W3 human-vision contrast scores computed from GitHub @primer/primitives v10 official light and dark files.

Why Colored Text Looks Harder to Read on Black

When you stare at a bright white page, your pupils shrink slightly — acting like a camera lens with sharper focus. In a dark room staring at a black screen, your pupils widen, and bright colored letters like red or blue can look softer or slightly blurry around the edges (a visual effect called halation).

That’s why GitHub didn’t crank its default dark mode colors to blinding neon — and instead built a separate "Dark High Contrast" setting (with brighter #74B9FF blue) for anyone who wants maximum punch.

What This Means for Your Dark Mode Website

Don’t trust the classic 4.5:1 number alone when building dark mode! Colored text on near-black needs to be slightly lighter, softer, and slightly thicker in font weight to feel just as easy to read as light mode.

Check Both Scores Before Launching Dark Mode

Run your dark-mode link colors through our Contrast Checker to see both the legal ratio and the human-eye APCA score together.

Cite This Study

ColorQueue (2026). "Why GitHub’s Dark Mode Colors Score Higher on Official Tests — Yet Look Dimmer to Human Eyes." https://colorqueue.com/guides/github-primer-light-dark-apca-asymmetry/

Research Sources & Primary Citations

Open Dual Contrast Checker

Featured Color Swatches & HEX Codes

  • #0969DAsRGB HEX Specification
  • #4493F8sRGB HEX Specification
  • #D1242FsRGB HEX Specification
  • #F85149sRGB HEX Specification
  • #0D1117sRGB HEX Specification

Frequently Asked Questions

Does this mean GitHub Dark Mode fails accessibility laws?

No! Every single GitHub Dark Mode color we tested passes legal WCAG 2.2 AA (scoring 5.65:1 to 7.50:1). It just feels softer to human eyes than Light Mode.

Why doesn’t GitHub make its dark-mode red and blue super neon bright?

Super bright saturated colors on near-black screens can look glowing and cause eye fatigue during long coding sessions — especially for people with astigmatism.

How can I make dark-mode colored links easier to read?

Make them slightly lighter/more pastel, bump the font weight up slightly (like medium 500), and underline links so color isn’t the only clue.