← All gradients
35%How it works
LEGO ↗

LEGO Gradient

#FFCF00
#E3000B
Text readability
Brand WarmBold Media

LEGO Gradient is a warm and bold 2-colour linear gradient that runs from yellow (#FFCF00) to red (#E3000B) at 135°. It is inspired by LEGO’s brand colours, a reference point for media interfaces. Black text reads best on it, at a contrast ratio of 6.7:1 against the gradient’s average colour (AA). Check every point, not just the average →

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

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

LEGO Gradient for SwiftUI, Flutter, Android and more

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

let legoGradient = LinearGradient(
    colors: [
        Color(red: 1, green: 0.812, blue: 0),
        Color(red: 0.89, green: 0, blue: 0.043)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(legoGradient)

Colours in the LEGO Gradient

StopNameHEXRGBHSL
1Yellow#FFCF00rgb(255, 207, 0)hsl(49, 100%, 50%)
2Red#E3000Brgb(227, 0, 11)hsl(357, 100%, 45%)

LEGO Gradient in use

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

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

The LEGO Gradient uses 2 colours: #FFCF00 and #E3000B, at an angle of 135°.

How do I use the LEGO Gradient in CSS?

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

What text colour works on the LEGO Gradient?

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