← All gradients
35%How it works
LeetCode ↗

LeetCode Gradient

#FFA116
#B3B3B3
#1A1A1A
Text readability
Brand Cool Tech

LeetCode Gradient is a cool 3-colour linear gradient that runs from orange (#FFA116) through grey (#B3B3B3) to near-black (#1A1A1A) at 135°. It is inspired by LeetCode’s brand colours, a reference point for tech interfaces. Black text reads best on it, at a contrast ratio of 5.2:1 against the gradient’s average colour (AA). Check every point, not just the average →

Unofficial reference: inspired by LeetCode’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by LeetCode. LeetCode 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 LeetCode’s. Terms

CSS
background: linear-gradient(135deg, #FFA116, #B3B3B3, #1A1A1A);
Tailwind
bg-gradient-to-br from-[#FFA116] via-[#B3B3B3] to-[#1A1A1A]
Figma token
{
    "leetcode": {
        "value": "linear-gradient(135deg, #FFA116 0%, #B3B3B3 50%, #1A1A1A 100%)",
        "type": "color"
    }
}

LeetCode Gradient for SwiftUI, Flutter, Android and more

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

let leetcodeGradient = LinearGradient(
    colors: [
        Color(red: 1, green: 0.631, blue: 0.086),
        Color(red: 0.702, green: 0.702, blue: 0.702),
        Color(red: 0.102, green: 0.102, blue: 0.102)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(leetcodeGradient)

Colours in the LeetCode Gradient

StopNameHEXRGBHSL
1Orange#FFA116rgb(255, 161, 22)hsl(36, 100%, 54%)
2Grey#B3B3B3rgb(179, 179, 179)hsl(0, 0%, 70%)
3Near-black#1A1A1Argb(26, 26, 26)hsl(0, 0%, 10%)

LeetCode Gradient in use

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

LeetCode 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 LeetCode Gradient?

The LeetCode Gradient uses 3 colours: #FFA116, #B3B3B3 and #1A1A1A, at an angle of 135°.

How do I use the LeetCode Gradient in CSS?

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

What text colour works on the LeetCode Gradient?

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