← All gradients
35%How it works
GitHub ↗

GitHub Gradient

#24292E
#586069
Text readability
Brand DarkNeutral Tech

GitHub Gradient is a dark and neutral 2-colour linear gradient that runs from charcoal (#24292E) to grey (#586069) at 135°. It is inspired by GitHub’s brand colours, a reference point for tech interfaces. White text reads best on it, at a contrast ratio of 9.8:1 against the gradient’s average colour (AAA). Check every point, not just the average →

Unofficial reference: inspired by GitHub’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by GitHub. GitHub is a trademark of its owner. The CSS is free to use, but don’t use these colours to make your own product look like GitHub’s. Terms

CSS
background: linear-gradient(135deg, #24292E, #586069);
Tailwind
bg-gradient-to-br from-[#24292E] to-[#586069]
Figma token
{
    "github": {
        "value": "linear-gradient(135deg, #24292E 0%, #586069 100%)",
        "type": "color"
    }
}

GitHub Gradient for SwiftUI, Flutter, Android and more

The same gradient, same direction, ready for your app or design system.

let githubGradient = LinearGradient(
    colors: [
        Color(red: 0.141, green: 0.161, blue: 0.18),
        Color(red: 0.345, green: 0.376, blue: 0.412)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(githubGradient)

Colours in the GitHub Gradient

StopNameHEXRGBHSL
1Charcoal#24292Ergb(36, 41, 46)hsl(210, 12%, 16%)
2Grey#586069rgb(88, 96, 105)hsl(212, 9%, 38%)

GitHub Gradient in use

Build something beautifulA hero section on the GitHub GradientGet started
Button
Card accentAs a border or progress bar
Gradient text

GitHub Gradient variations

Reversed
Horizontal
Radial
Conic
Softer
Deeper
Smooth (OKLCH)
Hard stops

Download as an image

Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.

Frequently asked questions

What are the hex codes for the GitHub Gradient?

The GitHub Gradient uses 2 colours: #24292E and #586069, at an angle of 135°.

How do I use the GitHub Gradient in CSS?

Paste background: linear-gradient(135deg, #24292E, #586069); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the GitHub Gradient?

White text has the best contrast, at 9.8:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.