← All gradients
35%How it works
Kotlin ↗

Kotlin Gradient

#7F52FF
#C711E1
#E44857
Text readability
Brand CoolBold Tech

Kotlin Gradient is a cool and bold 3-colour linear gradient that runs from light purple (#7F52FF) through purple (#C711E1) to red (#E44857) at 135°. It is inspired by Kotlin’s brand colours, a reference point for tech interfaces. White text reads best on it, at a contrast ratio of 4.8:1 against the gradient’s average colour (AA). Check every point, not just the average →

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

CSS
background: linear-gradient(135deg, #7F52FF, #C711E1, #E44857);
Tailwind
bg-gradient-to-br from-[#7F52FF] via-[#C711E1] to-[#E44857]
Figma token
{
    "kotlin": {
        "value": "linear-gradient(135deg, #7F52FF 0%, #C711E1 50%, #E44857 100%)",
        "type": "color"
    }
}

Kotlin Gradient for SwiftUI, Flutter, Android and more

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

let kotlinGradient = LinearGradient(
    colors: [
        Color(red: 0.498, green: 0.322, blue: 1),
        Color(red: 0.78, green: 0.067, blue: 0.882),
        Color(red: 0.894, green: 0.282, blue: 0.341)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(kotlinGradient)

Colours in the Kotlin Gradient

StopNameHEXRGBHSL
1Light purple#7F52FFrgb(127, 82, 255)hsl(256, 100%, 66%)
2Purple#C711E1rgb(199, 17, 225)hsl(293, 86%, 47%)
3Red#E44857rgb(228, 72, 87)hsl(354, 74%, 59%)

Kotlin Gradient in use

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

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

The Kotlin Gradient uses 3 colours: #7F52FF, #C711E1 and #E44857, at an angle of 135°.

How do I use the Kotlin Gradient in CSS?

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

What text colour works on the Kotlin Gradient?

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