Named gradient · uiGradients
King Yna
King Yna is a blue gradient from uiGradients (MIT) — #1a2a6c → #b21f1f → #fdbb2d 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 1.70:1 at 100% (fails AA); black ink: worst 1.59:1 at 0% (fails AA) → use white text.
- Neither ink passes AA at the worst point — treat as decorative or add a scrim (rgba(0,0,0,.35) typically lifts white ink past 4:1).
- Banding medium: ~5px bands at 1440px — add grain 7 (≈1% soft-light noise) or shorten the ramp.
Export
.gradient {
background-image: linear-gradient(90deg, #1a2a6c 0%, #272d69 3.57%, #333065 7.14%, #3e3261 10.71%, #49345e 14.29%, #54355a 17.86%, #5e3555 21.43%, #693551 25%, #73354c 28.57%, #7d3447 32.14%, #883241 35.71%, #922f3a 39.29%, #9d2b33 42.86%, #a7262a 46.43%, #b21f1f 50%, #b82f20 53.57%, #be3c22 57.14%, #c44823 60.71%, #ca5424 64.29%, #cf5f25 67.86%, #d56927 71.43%, #da7428 75%, #df7e29 78.57%, #e58829 82.14%, #ea922a 85.71%, #ef9d2b 89.29%, #f4a72c 92.86%, #f8b12c 96.43%, #fdbb2d 100%);
background-image: linear-gradient(90deg in oklab, #1a2a6c 0%, #b21f1f 50%, #fdbb2d 100%);
}bg-linear-to-r/oklab from-[#1a2a6c] via-[#b21f1f] to-[#fdbb2d]
<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="#1a2a6c"/><stop offset="3.57%" stop-color="#272d69"/><stop offset="7.14%" stop-color="#333065"/><stop offset="10.71%" stop-color="#3e3261"/><stop offset="14.29%" stop-color="#49345e"/><stop offset="17.86%" stop-color="#54355a"/><stop offset="21.43%" stop-color="#5e3555"/><stop offset="25%" stop-color="#693551"/><stop offset="28.57%" stop-color="#73354c"/><stop offset="32.14%" stop-color="#7d3447"/><stop offset="35.71%" stop-color="#883241"/><stop offset="39.29%" stop-color="#922f3a"/><stop offset="42.86%" stop-color="#9d2b33"/><stop offset="46.43%" stop-color="#a7262a"/><stop offset="50%" stop-color="#b21f1f"/><stop offset="53.57%" stop-color="#b82f20"/><stop offset="57.14%" stop-color="#be3c22"/><stop offset="60.71%" stop-color="#c44823"/><stop offset="64.29%" stop-color="#ca5424"/><stop offset="67.86%" stop-color="#cf5f25"/><stop offset="71.43%" stop-color="#d56927"/><stop offset="75%" stop-color="#da7428"/><stop offset="78.57%" stop-color="#df7e29"/><stop offset="82.14%" stop-color="#e58829"/><stop offset="85.71%" stop-color="#ea922a"/><stop offset="89.29%" stop-color="#ef9d2b"/><stop offset="92.86%" stop-color="#f4a72c"/><stop offset="96.43%" stop-color="#f8b12c"/><stop offset="100%" stop-color="#fdbb2d"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
{
"king-yna": {
"$type": "gradient",
"$value": [
{
"color": {
"colorSpace": "srgb",
"components": [
0.102,
0.165,
0.424
],
"hex": "#1a2a6c"
},
"position": 0
},
{
"color": {
"colorSpace": "srgb",
"components": [
0.698,
0.122,
0.122
],
"hex": "#b21f1f"
},
"position": 0.5
},
{
"color": {
"colorSpace": "srgb",
"components": [
0.992,
0.733,
0.176
],
"hex": "#fdbb2d"
},
"position": 1
}
],
"$extensions": {
"com.brandsweets": {
"kind": "linear",
"css": "linear-gradient(90deg in oklab, #1a2a6c 0%, #b21f1f 50%, #fdbb2d 100%)",
"interpolation": "oklab",
"angle": 90,
"name": "King Yna",
"contrast": {
"white": {
"ratio": 1.704,
"at": 1,
"passesAA": false,
"passesAALarge": false
},
"black": {
"ratio": 1.592,
"at": 0,
"passesAA": false,
"passesAALarge": false
},
"suggestedInk": "#ffffff"
}
}
},
"$description": "King Yna (uiGradients, MIT), rendered in OKLab."
}
}Tagged
More blue 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 King Yna gradient (#1a2a6c, #b21f1f, #fdbb2d), 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