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
background: linear-gradient(135deg, #7F52FF, #C711E1, #E44857);
bg-gradient-to-br from-[#7F52FF] via-[#C711E1] to-[#E44857]
{
"kotlin": {
"value": "linear-gradient(135deg, #7F52FF 0%, #C711E1 50%, #E44857 100%)",
"type": "color"
}
}
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)val kotlinColors = listOf(Color(0xFF7F52FF), Color(0xFFC711E1), Color(0xFFE44857))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = kotlinColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/kotlin_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#7F52FF"
android:centerColor="#C711E1"
android:endColor="#E44857"
android:type="linear" />
</shape>const kotlinGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFF7F52FF), Color(0xFFC711E1), Color(0xFFE44857)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: kotlinGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#7F52FF', '#C711E1', '#E44857']}
start={{ x: 0, y: 0 }}
end={{ x: 1, y: 1 }}
style={{ flex: 1 }}
/><svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630">
<defs>
<linearGradient id="kotlin" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#7F52FF" />
<stop offset="50%" stop-color="#C711E1" />
<stop offset="100%" stop-color="#E44857" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#kotlin)" />
</svg>:root {
--kotlin-1: #7F52FF;
--kotlin-2: #C711E1;
--kotlin-3: #E44857;
--kotlin-angle: 135deg;
--kotlin: linear-gradient(var(--kotlin-angle), var(--kotlin-1), var(--kotlin-2), var(--kotlin-3));
}
.hero {
background: var(--kotlin);
}$kotlin-1: #7F52FF;
$kotlin-2: #C711E1;
$kotlin-3: #E44857;
$kotlin: linear-gradient(135deg, $kotlin-1, $kotlin-2, $kotlin-3);
@mixin kotlin-bg {
background: $kotlin-1;
background: $kotlin;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Light purple | #7F52FF | rgb(127, 82, 255) | hsl(256, 100%, 66%) |
| 2 | Purple | #C711E1 | rgb(199, 17, 225) | hsl(293, 86%, 47%) |
| 3 | Red | #E44857 | rgb(228, 72, 87) | hsl(354, 74%, 59%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Kotlin Gradient uses 3 colours: #7F52FF, #C711E1 and #E44857, at an angle of 135°.
Paste background: linear-gradient(135deg, #7F52FF, #C711E1, #E44857); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
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.