← All gradients
35%How it works
Star Wars ↗

Star Wars Gradient

#FFE81F
#0A0A0A
Text readability
Brand WarmDark Media

Star Wars Gradient is a warm and dark 2-colour linear gradient that runs from yellow (#FFE81F) to near-black (#0A0A0A) at 135°. It is inspired by Star Wars’s brand colours, a reference point for media interfaces. Black text reads best on it, at a contrast ratio of 4.7:1 against the gradient’s average colour (AA). Check every point, not just the average →

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

CSS
background: linear-gradient(135deg, #FFE81F, #0A0A0A);
Tailwind
bg-gradient-to-br from-[#FFE81F] to-[#0A0A0A]
Figma token
{
    "star-wars": {
        "value": "linear-gradient(135deg, #FFE81F 0%, #0A0A0A 100%)",
        "type": "color"
    }
}

Star Wars Gradient for SwiftUI, Flutter, Android and more

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

let starWarsGradient = LinearGradient(
    colors: [
        Color(red: 1, green: 0.91, blue: 0.122),
        Color(red: 0.039, green: 0.039, blue: 0.039)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(starWarsGradient)

Colours in the Star Wars Gradient

StopNameHEXRGBHSL
1Yellow#FFE81Frgb(255, 232, 31)hsl(54, 100%, 56%)
2Near-black#0A0A0Argb(10, 10, 10)hsl(0, 0%, 4%)

Star Wars Gradient in use

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

Star Wars 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 Star Wars Gradient?

The Star Wars Gradient uses 2 colours: #FFE81F and #0A0A0A, at an angle of 135°.

How do I use the Star Wars Gradient in CSS?

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

What text colour works on the Star Wars Gradient?

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