Colors

The github.com color palette

github.com builds its pages on #0d1117 with #ffffff text and #08872b as the accent, the color of its primary buttons and links. The 10 colors below were measured from the live site.

Measured from github.com 4 days ago.

Palette

10 colors
ColorsRoleHexRGBLight / dark
backgroundPage background#0d1117rgb(13 17 23)#0d1117
surfaceCards, panels, raised or recessed surfaces#000000rgb(0 0 0)#000000
surface-2Secondary surface#1c1f25rgb(28 31 37)
surface-3Secondary surface#3d4145rgb(61 65 69)
foregroundPrimary text#ffffffrgb(255 255 255)#ffffff
muted-foregroundSecondary text, captions#a4aea6rgb(164 174 166)
primaryCandidate accent (semantic role inferred)#08872brgb(8 135 43)#08872b
on-primaryText on the accent#ffffffrgb(255 255 255)#ffffff
secondarySecondary accent (blue)#1f6febrgb(31 111 235)#1f6feb
borderHairlines, dividers, input borders#25292ergb(37 41 46)#25292e
Text on the page background
18.92:1 · passes WCAG AA
Text on the accent
4.66:1 · passes WCAG AA

CSS variables

Every color as a custom property, named by role. The dark block is there when the site has a dark theme.

:root {
  --color-background: #0d1117;
  --color-surface: #000000;
  --color-surface-2: #1c1f25;
  --color-surface-3: #3d4145;
  --color-foreground: #ffffff;
  --color-muted-foreground: #a4aea6;
  --color-primary: #08872b;
  --color-on-primary: #ffffff;
  --color-secondary: #1f6feb;
  --color-border: #25292e;
}
​
[data-theme="dark"] {
  --color-background: #0d1117;
  --color-surface: #000000;
  --color-foreground: #ffffff;
  --color-primary: #08872b;
  --color-on-primary: #ffffff;
  --color-secondary: #1f6feb;
  --color-border: #25292e;
}

For AI agents

The pack is plain text, no key: fetch DESIGN.md, or hand the whole pack to Claude Code, Cursor or Copilot with the MCP server.

curl -s https://stylepack.ai/packs/github.com/DESIGN.md

Questions

What are the github.com brand colors?

The main github.com colors are #08872b (accent), #0d1117 (background) and #ffffff (text). The full palette of 10 colors, with the role of each, is on this page as hex codes.

What is the github.com hex code?

The accent color on github.com is #08872b; the page background is #0d1117 and the main text color #ffffff. Each is measured from the rendered page, so it is what visitors see, not a value from a style guide.

How do I use the github.com colors in Tailwind or CSS?

Copy the CSS variables or the Tailwind v4 theme on this page, or download the design pack: it includes tokens.json (W3C design tokens), tokens.css and tailwind.css with the same values.