GitHub colors

The GitHub color palette has 6 colors: GitHub Green #0FBF3E, Gray 6 #101411, Gray 1 #F2F5F3, Gray 4 #909692, Copilot Purple #8534F3 and Security Blue #3094FF. Below are HEX, RGB, HSL and OKLCH codes, contrast checks, CSS and Tailwind variables, all from official guidelines checked on 16 October 2026.

GitHub color codes

GitHub brand colors in HEX, RGB, HSL and OKLCH
ColorRoleHEXRGBHSLOKLCH
GitHub GreenPrimary#0FBF3Ergb(15, 191, 62)hsl(136, 85%, 40%)oklch(70.1% 0.213 145.7)
Gray 6Text#101411rgb(16, 20, 17)hsl(135, 11%, 7%)oklch(18.6% 0.009 153.1)
Gray 1Background#F2F5F3rgb(242, 245, 243)hsl(140, 13%, 95%)oklch(96.7% 0.004 157.2)
Gray 4Neutral#909692rgb(144, 150, 146)hsl(140, 3%, 58%)oklch(66.7% 0.009 157)
Copilot PurpleSecondary#8534F3rgb(133, 52, 243)hsl(265, 89%, 58%)oklch(55% 0.258 295.7)
Security BlueSecondary#3094FFrgb(48, 148, 255)hsl(211, 100%, 59%)oklch(66.4% 0.182 253.7)

Select a color to open its own page with tints, shades, harmonies and every color format, or open the whole set in the palette generator.

Where the GitHub colors come from

These hex values are published by GitHub in its own brand guidelines. We fetched the page on 16 October 2026 and copied the values exactly; nothing here is estimated from a logo image.

GitHub color contrast

Black text on GitHub Green has a contrast ratio of 8.54:1 and passes WCAG AAA for any text size. Used as a text color, GitHub Green reaches 2.45:1 on white and 8.54:1 on black. Ratios are WCAG 2 (truncated, never rounded up); APCA Lc is shown as a second opinion.

White and black text on GitHub colors
PairWCAG 2 ratioWCAG 2 resultAPCAAPCA guidance
White on GitHub Green2.45:1FailsLc -52.6Large or bold text, headings
Black on GitHub Green8.54:1AAALc 56.4Large or bold text, headings
White on Gray 618.58:1AAALc -107.2Preferred for body text
Black on Gray 61.13:1FailsLc 0.0Not readable
White on Gray 11.09:1FailsLc 0.0Not readable
Black on Gray 119.13:1AAALc 99.6Preferred for body text
White on Gray 43.01:1AA large textLc -62.3Content text, not long reading
Black on Gray 46.96:1AALc 47.1Large or bold text, headings
White on Copilot Purple5.55:1AALc -81.9Fine for body text
Black on Copilot Purple3.78:1AA large textLc 27.6Dividers and decoration only
White on Security Blue3.08:1AA large textLc -62.6Content text, not long reading
Black on Security Blue6.80:1AALc 46.8Large or bold text, headings
GitHub colors on each other
PairWCAG 2 ratioWCAG 2 resultAPCAAPCA guidance
Gray 6 on Gray 116.92:1AAALc 98.7Preferred for body text
Gray 6 on GitHub Green7.55:1AAALc 55.5Large or bold text, headings
Gray 6 on Gray 46.16:1AALc 46.3Large or bold text, headings
Gray 6 on Security Blue6.02:1AALc 45.9Large or bold text, headings

GitHub colors in CSS and Tailwind

Copy the GitHub palette as CSS custom properties or as a Tailwind CSS v4 theme. The last snippet is an 11-step Tailwind scale (50 to 950) generated in OKLCH from GitHub Green, for hover states, borders and tinted backgrounds.

CSS variables
:root {
  --github-green: #0FBF3E;
  --github-gray-6: #101411;
  --github-gray-1: #F2F5F3;
  --github-gray-4: #909692;
  --github-copilot-purple: #8534F3;
  --github-security-blue: #3094FF;
}
Tailwind CSS v4 theme
@import "tailwindcss";

@theme {
  --color-github-green: #0FBF3E;
  --color-github-gray-6: #101411;
  --color-github-gray-1: #F2F5F3;
  --color-github-gray-4: #909692;
  --color-github-copilot-purple: #8534F3;
  --color-github-security-blue: #3094FF;
}
Tailwind scale generated from GitHub Green #0FBF3E
@theme {
  --color-github-50: #EEF9EE;
  --color-github-100: #DAF1DB;
  --color-github-200: #BBE7BC;
  --color-github-300: #86D78B;
  --color-github-400: #0FBF3E;
  --color-github-500: #00A633;
  --color-github-600: #008C29;
  --color-github-700: #007621;
  --color-github-800: #00611A;
  --color-github-900: #005114;
  --color-github-950: #003008;
}

Named colors closest to the GitHub palette

The nearest named color to each brand color, measured as perceptual distance (ΔE OK) in OKLab. Under 0.02 is hard to tell apart; above 0.05 the difference is easy to see.

Brand colorHEXNearest named colorNamed HEXΔE OK
GitHub Green#0FBF3EShamrock Green#02C14D0.013
Gray 6#101411Rich Navy#0012190.034
Gray 1#F2F5F3White Smoke#F5F5F50.005
Gray 4#909692Warm Grey#978A840.033
Copilot Purple#8534F3Blue Violet#8A2BE20.031
Security Blue#3094FFDodger Blue#1E90FF0.014

How to use a GitHub-style palette

  • Lead with GitHub Green #0FBF3E for buttons, links and key highlights, with black text on it.
  • Give most of the layout to Gray 6 #101411, Gray 1 #F2F5F3 and Gray 4 #909692, about 60% of the screen, so GitHub Green stands out.
  • Keep Copilot Purple and Security Blue for small accents (around 10%): status colors, illustrations or charts.
  • As text on a white page, GitHub Green reaches 2.45:1: it fails WCAG 2 for text there, so keep it for icons, fills and borders.

To see how github.com uses these colors today, including backgrounds, text and dark mode, run it through the website color extractor. To turn GitHub Green into a full light and dark color system with accessible roles, open it in the Color System Studio.

More brand colors

Trademarks

Frequently asked questions

What is the GitHub hex color?

The main GitHub color is GitHub Green #0FBF3E, which is rgb(15, 191, 62) in RGB. It comes from GitHub's own brand guidelines, checked on 16 October 2026.

What colors does GitHub use?

GitHub uses 6 core colors: GitHub Green #0FBF3E, Gray 6 #101411, Gray 1 #F2F5F3, Gray 4 #909692, Copilot Purple #8534F3 and Security Blue #3094FF.

What is GitHub Green in RGB, HSL and OKLCH?

GitHub Green #0FBF3E is rgb(15, 191, 62), hsl(136, 85%, 40%) and oklch(70.1% 0.213 145.7). The closest named color is Shamrock Green #02C14D.

Should text on GitHub Green be white or black?

Black text reads better on GitHub Green: it has a contrast ratio of 8.54:1, which passes WCAG AAA for any text size.

Where do these GitHub colors come from?

The hex values were read from GitHub's official brand guidelines at https://brand.github.com/foundations/color on 16 October 2026. Contrast, RGB, HSL and OKLCH values on this page are calculated from those hex codes.

Can I use the GitHub colors in my own design?

Colors on their own are not owned, but GitHub's name, logo and the way it combines its colors are trademarks. Use these values to match GitHub when you refer to it, follow its official guidelines, and do not imply a link to GitHub in your own brand.

Use the GitHub colors

Check github.com live, build a color system from GitHub Green, or remix the palette.