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| Colors | Role | Hex | RGB | Light / dark |
|---|---|---|---|---|
background | Page background | #0d1117 | rgb(13 17 23) | #0d1117 |
surface | Cards, panels, raised or recessed surfaces | #000000 | rgb(0 0 0) | #000000 |
surface-2 | Secondary surface | #1c1f25 | rgb(28 31 37) | |
surface-3 | Secondary surface | #3d4145 | rgb(61 65 69) | |
foreground | Primary text | #ffffff | rgb(255 255 255) | #ffffff |
muted-foreground | Secondary text, captions | #a4aea6 | rgb(164 174 166) | |
primary | Candidate accent (semantic role inferred) | #08872b | rgb(8 135 43) | #08872b |
on-primary | Text on the accent | #ffffff | rgb(255 255 255) | #ffffff |
secondary | Secondary accent (blue) | #1f6feb | rgb(31 111 235) | #1f6feb |
border | Hairlines, dividers, input borders | #25292e | rgb(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.mdQuestions
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.