Hugging Face Gradient is a warm and bold 2-colour linear gradient that runs from yellow (#FFD21E) to orange (#FF9D00) at 135°. It is inspired by Hugging Face’s brand colours, a reference point for tech interfaces. Black text reads best on it, at a contrast ratio of 12.1:1 against the gradient’s average colour (AAA). Check every point, not just the average →
Unofficial reference: inspired by Hugging Face’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by Hugging Face. Hugging Face 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 Hugging Face’s. Terms
background: linear-gradient(135deg, #FFD21E, #FF9D00);
bg-gradient-to-br from-[#FFD21E] to-[#FF9D00]
{
"hugging-face": {
"value": "linear-gradient(135deg, #FFD21E 0%, #FF9D00 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let huggingFaceGradient = LinearGradient(
colors: [
Color(red: 1, green: 0.824, blue: 0.118),
Color(red: 1, green: 0.616, blue: 0)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(huggingFaceGradient)val huggingFaceColors = listOf(Color(0xFFFFD21E), Color(0xFFFF9D00))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = huggingFaceColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/hugging-face_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#FFD21E"
android:endColor="#FF9D00"
android:type="linear" />
</shape>const huggingFaceGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFFFFD21E), Color(0xFFFF9D00)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: huggingFaceGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#FFD21E', '#FF9D00']}
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="hugging-face" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#FFD21E" />
<stop offset="100%" stop-color="#FF9D00" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#hugging-face)" />
</svg>:root {
--hugging-face-1: #FFD21E;
--hugging-face-2: #FF9D00;
--hugging-face-angle: 135deg;
--hugging-face: linear-gradient(var(--hugging-face-angle), var(--hugging-face-1), var(--hugging-face-2));
}
.hero {
background: var(--hugging-face);
}$hugging-face-1: #FFD21E;
$hugging-face-2: #FF9D00;
$hugging-face: linear-gradient(135deg, $hugging-face-1, $hugging-face-2);
@mixin hugging-face-bg {
background: $hugging-face-1;
background: $hugging-face;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Yellow | #FFD21E | rgb(255, 210, 30) | hsl(48, 100%, 56%) |
| 2 | Orange | #FF9D00 | rgb(255, 157, 0) | hsl(37, 100%, 50%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Hugging Face Gradient uses 2 colours: #FFD21E and #FF9D00, at an angle of 135°.
Paste background: linear-gradient(135deg, #FFD21E, #FF9D00); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black text has the best contrast, at 12.1:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.