← All gradients
35%How it works
Curated

Brass

#F1DFA0
#B5A642
#6B5B1B
Text readability
Curated Warm

Brass is a warm 3-colour linear gradient that runs from pale yellow (#F1DFA0) through yellow (#B5A642) to deep yellow (#6B5B1B) at 135°. It suits hero sections and call-to-action buttons. Black text reads best on it, at a contrast ratio of 8.0:1 against the gradient’s average colour (AAA). Check every point, not just the average →

CSS
background: linear-gradient(135deg, #F1DFA0, #B5A642, #6B5B1B);
Tailwind
bg-gradient-to-br from-[#F1DFA0] via-[#B5A642] to-[#6B5B1B]
Figma token
{
    "brass": {
        "value": "linear-gradient(135deg, #F1DFA0 0%, #B5A642 50%, #6B5B1B 100%)",
        "type": "color"
    }
}

Brass gradient for SwiftUI, Flutter, Android and more

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

let brassGradient = LinearGradient(
    colors: [
        Color(red: 0.945, green: 0.875, blue: 0.627),
        Color(red: 0.71, green: 0.651, blue: 0.259),
        Color(red: 0.42, green: 0.357, blue: 0.106)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(brassGradient)

Colours in the Brass gradient

StopNameHEXRGBHSL
1Pale yellow#F1DFA0rgb(241, 223, 160)hsl(47, 74%, 79%)
2Yellow#B5A642rgb(181, 166, 66)hsl(52, 47%, 48%)
3Deep yellow#6B5B1Brgb(107, 91, 27)hsl(48, 60%, 26%)

Brass gradient in use

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

Brass 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 Brass gradient?

The Brass gradient uses 3 colours: #F1DFA0, #B5A642 and #6B5B1B, at an angle of 135°.

How do I use the Brass gradient in CSS?

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

What text colour works on the Brass gradient?

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