Colour to colour · generated
Dark Khaki to Periwinkle gradient
Dark Khaki (#bdb76b) into Periwinkle (#ccccff) — 180° apart on the OKLCH hue wheel. Below: the same two stops interpolated in OKLab and in OKLCH, side by side, because the difference is real and most generators never let you see it; then an eased version and a mesh, each with the worst-case contrast for white and black text. The engine's own pick for this pair is oklch: ΔH 180° > 140° — interpolating in oklch (shorter hue) keeps the midpoint saturated.
OKLab and OKLCH, side by side
OKLab
Open in maker →A straight line through the a/b plane: the two hues meet halfway and desaturate a little at the midpoint. The safe default — it is what CSS and Tailwind default to.
linear-gradient(135deg in oklab, #bdb76b 0%, #ccccff 100%)
OKLCH (shorter hue)
Open in maker →Chroma and hue interpolate separately, so the midpoint keeps its saturation and the hue travels the short way round the wheel — richer, and it can pass through hues neither colour has.
linear-gradient(135deg in oklch shorter hue, #bdb76b 0%, #ccccff 100%)
And the sRGB line most tools draw, for comparison — the number is the chroma that survives at the dullest point.
Eased and mesh
Eased (soft)
Open in maker →A cubic-bezier(.4, 0, .6, 1) mix ratio baked into 15 stops: the transition lingers on each colour and moves faster through the middle, which is what makes a gradient read as designed rather than default.
linear-gradient(135deg in oklch shorter hue, #bdb76b 0%, #c0b66b 8.28%, #c9b56b 16.03%, #d4b26e 23.35%, #e1af77 30.32%, #ebac86 37.03%, #f2ab9a 43.56%, #f4acb1 50%, #f1b0c8 56.44%, #ebb6db 62.97%, #e3bceb 69.68%, #dac2f5 76.65%, #d3c7fb 83.97%, #cecbfe 91.72%, #ccccff 100%)
Mesh
Open in maker →Both colours as stacked radials over a base, laid out by a seeded Poisson-disc sampler — the same seed gives the same mesh forever. Exports as CSS, SVG and PNG.
background-color: #c4c3b9; background-image: radial-gradient(circle farthest-corner at 62.4% 6.87%, rgba(189, 183, 107, 0.741) 0%, rgba(189, 183, 107, 0) 51.49%), radial-gradient(circle farthest-corner at 3.64% 40.18%, rgba(204, 204, 255, 0.896) 0%, rgba(204, 204, 255, 0) 51.19%); background-image: radial-gradient(circle farthest-corner at 62.4% 6.87%, oklch(from #bdb76b l c h / 0.7407) 0%, rgb(from #bdb76b r g b / 0) 51.49%), radial-gradient(circle farthest-corner at 3.64% 40.18%, oklch(from #ccccff l c h / 0.896) 0%, rgb(from #ccccff r g b / 0) 51.19%);
Report
- white ink: worst 1.54:1 at 100% (fails AA); black ink: worst 10.14:1 at 2% (AA) → use black text.
- Banding high: ~10px bands at 1440px — add grain 20 (≈2% soft-light noise) or shorten the ramp.
Export
.gradient {
background-image: linear-gradient(135deg, #bdb76b 0%, #ccb46c 7.14%, #d8b171 14.29%, #e3ae79 21.43%, #eaac85 28.57%, #f0ab93 35.71%, #f3aba2 42.86%, #f4acb1 50%, #f3afc0 57.14%, #efb2cf 64.29%, #eab6dc 71.43%, #e4bbe8 78.57%, #ddc0f2 85.71%, #d4c6fa 92.86%, #ccccff 100%);
background-image: linear-gradient(135deg in oklch shorter hue, #bdb76b 0%, #ccccff 100%);
}bg-linear-to-br/oklch from-[#bdb76b] to-[#ccccff]
<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="210" y1="-210" x2="1230" y2="810"><stop offset="0%" stop-color="#bdb76b"/><stop offset="7.14%" stop-color="#ccb46c"/><stop offset="14.29%" stop-color="#d8b171"/><stop offset="21.43%" stop-color="#e3ae79"/><stop offset="28.57%" stop-color="#eaac85"/><stop offset="35.71%" stop-color="#f0ab93"/><stop offset="42.86%" stop-color="#f3aba2"/><stop offset="50%" stop-color="#f4acb1"/><stop offset="57.14%" stop-color="#f3afc0"/><stop offset="64.29%" stop-color="#efb2cf"/><stop offset="71.43%" stop-color="#eab6dc"/><stop offset="78.57%" stop-color="#e4bbe8"/><stop offset="85.71%" stop-color="#ddc0f2"/><stop offset="92.86%" stop-color="#d4c6fa"/><stop offset="100%" stop-color="#ccccff"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
{
"darkkhaki-to-periwinkle": {
"$type": "gradient",
"$value": [
{
"color": {
"colorSpace": "srgb",
"components": [
0.741,
0.718,
0.42
],
"hex": "#bdb76b"
},
"position": 0
},
{
"color": {
"colorSpace": "srgb",
"components": [
0.8,
0.8,
1
],
"hex": "#ccccff"
},
"position": 1
}
],
"$extensions": {
"com.brandsweets": {
"kind": "linear",
"css": "linear-gradient(135deg in oklch shorter hue, #bdb76b 0%, #ccccff 100%)",
"interpolation": "oklch",
"hue": "shorter",
"angle": 135,
"name": "darkkhaki-to-periwinkle",
"contrast": {
"white": {
"ratio": 1.539,
"at": 1,
"passesAA": false,
"passesAALarge": false
},
"black": {
"ratio": 10.145,
"at": 0.0159,
"passesAA": true,
"passesAALarge": true
},
"suggestedInk": "#000000"
}
}
},
"$description": "Dark Khaki to Periwinkle, interpolated in oklch."
}
}More from Dark Khaki
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
›make a dark khaki to periwinkle hero gradient in oklch that passes AA for white text, with grain if it bands
Want the agent to remember your picks and write them into a living brand? Create a free BrandSweets workspace.
Machine-readable: gradients.md