← All gradients
35%How it works
Curated

Coal

#EB5757
#000000
Text readability
Curated DarkBold

Coal is a dark and bold 2-colour linear gradient that runs from light red (#EB5757) to near-black (#000000) at 135°. It suits dark-mode interfaces and footers and banners and attention-grabbing headers. White text reads best on it, at a contrast ratio of 9.8:1 against the gradient’s average colour (AAA). Check every point, not just the average →

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

Coal gradient for SwiftUI, Flutter, Android and more

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

let coalGradient = LinearGradient(
    colors: [
        Color(red: 0.922, green: 0.341, blue: 0.341),
        Color(red: 0, green: 0, blue: 0)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(coalGradient)

Colours in the Coal gradient

StopNameHEXRGBHSL
1Light red#EB5757rgb(235, 87, 87)hsl(0, 79%, 63%)
2Near-black#000000rgb(0, 0, 0)hsl(0, 0%, 0%)

Coal gradient in use

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

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

The Coal gradient uses 2 colours: #EB5757 and #000000, at an angle of 135°.

How do I use the Coal gradient in CSS?

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

What text colour works on the Coal gradient?

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