#6B7075
#353839
#0F1011
Onyx is a neutral and dark 3-colour linear gradient that runs from grey (#6B7075) through charcoal (#353839) to near-black (#0F1011) at 160°. It suits subtle surfaces and app backgrounds and dark-mode interfaces and footers. White text reads best on it, at a contrast ratio of 10.9:1 against the gradient’s average colour (AAA). Check every point, not just the average →
background: linear-gradient(160deg, #6B7075, #353839, #0F1011);
bg-[linear-gradient(160deg,#6B7075,#353839,#0F1011)]
{
"onyx": {
"value": "linear-gradient(160deg, #6B7075 0%, #353839 50%, #0F1011 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let onyxGradient = LinearGradient(
colors: [
Color(red: 0.42, green: 0.439, blue: 0.459),
Color(red: 0.208, green: 0.22, blue: 0.224),
Color(red: 0.059, green: 0.063, blue: 0.067)
],
startPoint: UnitPoint(x: 0.318, y: 0),
endPoint: UnitPoint(x: 0.682, y: 1)
)
// Usage
Rectangle().fill(onyxGradient)val onyxColors = listOf(Color(0xFF6B7075), Color(0xFF353839), Color(0xFF0F1011))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = onyxColors,
start = Offset(size.width * 0.318f, size.height * 0f),
end = Offset(size.width * 0.682f, size.height * 1f)
)
)
}<!-- res/drawable/onyx_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#6B7075"
android:centerColor="#353839"
android:endColor="#0F1011"
android:type="linear" />
</shape>
<!-- Android only takes multiples of 45°: 160deg in CSS is 290°, rounded to 270°. -->const onyxGradient = LinearGradient(
begin: Alignment(-0.364, -1),
end: Alignment(0.364, 1),
colors: [Color(0xFF6B7075), Color(0xFF353839), Color(0xFF0F1011)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: onyxGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#6B7075', '#353839', '#0F1011']}
start={{ x: 0.318, y: 0 }}
end={{ x: 0.682, 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="onyx" x1="0.318" y1="0" x2="0.682" y2="1">
<stop offset="0%" stop-color="#6B7075" />
<stop offset="50%" stop-color="#353839" />
<stop offset="100%" stop-color="#0F1011" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#onyx)" />
</svg>:root {
--onyx-1: #6B7075;
--onyx-2: #353839;
--onyx-3: #0F1011;
--onyx-angle: 160deg;
--onyx: linear-gradient(var(--onyx-angle), var(--onyx-1), var(--onyx-2), var(--onyx-3));
}
.hero {
background: var(--onyx);
}$onyx-1: #6B7075;
$onyx-2: #353839;
$onyx-3: #0F1011;
$onyx: linear-gradient(160deg, $onyx-1, $onyx-2, $onyx-3);
@mixin onyx-bg {
background: $onyx-1;
background: $onyx;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Grey | #6B7075 | rgb(107, 112, 117) | hsl(210, 4%, 44%) |
| 2 | Charcoal | #353839 | rgb(53, 56, 57) | hsl(195, 4%, 22%) |
| 3 | Near-black | #0F1011 | rgb(15, 16, 17) | hsl(210, 6%, 6%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Onyx gradient uses 3 colours: #6B7075, #353839 and #0F1011, at an angle of 160°.
Paste background: linear-gradient(160deg, #6B7075, #353839, #0F1011); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 10.9:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.