← All gradients
35%How it works
UI

Badge Yellow

#FEF9C3
#FEF08A
Text readability
Ui WarmPastel

Badge Yellow is a warm and pastel 2-colour linear gradient that runs from pale yellow (#FEF9C3) to light yellow (#FEF08A) at 135°. It suits hero sections and call-to-action buttons and soft backgrounds, cards and onboarding screens. Black text reads best on it, at a contrast ratio of 18.8:1 against the gradient’s average colour (AAA). Check every point, not just the average →

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

Badge Yellow gradient for SwiftUI, Flutter, Android and more

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

let badgeYellowGradient = LinearGradient(
    colors: [
        Color(red: 0.996, green: 0.976, blue: 0.765),
        Color(red: 0.996, green: 0.941, blue: 0.541)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(badgeYellowGradient)

Colours in the Badge Yellow gradient

StopNameHEXRGBHSL
1Pale yellow#FEF9C3rgb(254, 249, 195)hsl(55, 97%, 88%)
2Light yellow#FEF08Argb(254, 240, 138)hsl(53, 98%, 77%)

Badge Yellow gradient in use

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

Badge Yellow 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 Badge Yellow gradient?

The Badge Yellow gradient uses 2 colours: #FEF9C3 and #FEF08A, at an angle of 135°.

How do I use the Badge Yellow gradient in CSS?

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

What text colour works on the Badge Yellow gradient?

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