Named gradient · uiGradients
YouTube
YouTube is a red gradient from uiGradients (MIT) — #e52d27 → #b31217 at 90°. Shown here interpolated in OKLab, next to the original sRGB, with the worst-case contrast for white and black text and every export.
Same stops, three spaces
The source renders this in sRGB. The number is how much chroma survives at the dullest point along the line — the difference between the first bar and the others is the grey that OKLab removes.
Report
- white ink: worst 4.43:1 at 0% (AA-large only); black ink: worst 3.02:1 at 100% (AA-large only) → use white text.
- Body text fails AA everywhere on this gradient; large text (≥24px / 19px bold) is fine. Add a scrim or lower the chroma for body copy.
- Banding high: ~29px bands at 1440px — add grain 50 (≈3% soft-light noise) or shorten the ramp.
Export
.gradient {
background-image: linear-gradient(90deg, #e52d27 0%, #e12b26 7.14%, #de2925 14.29%, #da2824 21.43%, #d62622 28.57%, #d32421 35.71%, #cf2220 42.86%, #cc201f 50%, #c81e1e 57.14%, #c51c1d 64.29%, #c11a1c 71.43%, #be181a 78.57%, #ba1619 85.71%, #b61418 92.86%, #b31217 100%);
background-image: linear-gradient(90deg in oklab, #e52d27 0%, #b31217 100%);
}bg-linear-to-r/oklab from-[#e52d27] to-[#b31217]
<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="600" viewBox="0 0 1440 600"><defs><linearGradient id="bs-gradient" gradientUnits="userSpaceOnUse" x1="0" y1="300" x2="1440" y2="300"><stop offset="0%" stop-color="#e52d27"/><stop offset="7.14%" stop-color="#e12b26"/><stop offset="14.29%" stop-color="#de2925"/><stop offset="21.43%" stop-color="#da2824"/><stop offset="28.57%" stop-color="#d62622"/><stop offset="35.71%" stop-color="#d32421"/><stop offset="42.86%" stop-color="#cf2220"/><stop offset="50%" stop-color="#cc201f"/><stop offset="57.14%" stop-color="#c81e1e"/><stop offset="64.29%" stop-color="#c51c1d"/><stop offset="71.43%" stop-color="#c11a1c"/><stop offset="78.57%" stop-color="#be181a"/><stop offset="85.71%" stop-color="#ba1619"/><stop offset="92.86%" stop-color="#b61418"/><stop offset="100%" stop-color="#b31217"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
{
"youtube": {
"$type": "gradient",
"$value": [
{
"color": {
"colorSpace": "srgb",
"components": [
0.898,
0.176,
0.153
],
"hex": "#e52d27"
},
"position": 0
},
{
"color": {
"colorSpace": "srgb",
"components": [
0.702,
0.071,
0.09
],
"hex": "#b31217"
},
"position": 1
}
],
"$extensions": {
"com.brandsweets": {
"kind": "linear",
"css": "linear-gradient(90deg in oklab, #e52d27 0%, #b31217 100%)",
"interpolation": "oklab",
"angle": 90,
"name": "YouTube",
"contrast": {
"white": {
"ratio": 4.434,
"at": 0,
"passesAA": false,
"passesAALarge": true
},
"black": {
"ratio": 3.016,
"at": 1,
"passesAA": false,
"passesAALarge": true
},
"suggestedInk": "#ffffff"
}
}
},
"$description": "YouTube (uiGradients, MIT), rendered in OKLab."
}
}Tagged
More red gradients
Point any MCP client at the shared gradients endpoint and your agent gets the same engine as this page — make_gradient returns CSS with the interpolation space, Tailwind v4, SVG, a PNG URL, a DTCG token and the contrast report in one call; brand_gradients derives the whole contact sheet from a brand or a palette. Read-only, no key. Every gradient is a /gradients/new/… link: open it, refine, paste it back.
https://mcp.brandsweets.com/gradients/mcpclaude mcp add --transport http brandsweets-gradients https://mcp.brandsweets.com/gradients/mcp
›take the YouTube gradient (#e52d27, #b31217), re-interpolate it in oklch, and tell me the worst-case contrast for white text
Want the agent to remember your picks and write them into a living brand? Create a free BrandSweets workspace.
Machine-readable: gradients.md · From uiGradients (MIT) — licences