Colour to colour

Royal Blue to Sienna gradient

Royal Blue (#4169e1) into Sienna (#a0522d) — 138° 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 oklab — both colours are in the palette and the hue gap is small enough that the straight line stays clean.

Royal Blue → Sienna
white text · worst 4.84:1 · AA
white 4.84 AAblack 3.74 AA largebanding medium

OKLab and OKLCH, side by side

Aa

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.

white 4.84 AAblack 3.74 AA largebanding medium
css
linear-gradient(135deg in oklab, #4169e1 0%, #a0522d 100%)
Aa

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.

white 4.83 AAblack 3.72 AA largebanding medium
css
linear-gradient(135deg in oklch shorter hue, #4169e1 0%, #a0522d 100%)

And the sRGB line most tools draw, for comparison — the number is the chroma that survives at the dullest point.

sRGB36%
OKLab33%
OKLCH76%

Eased and mesh

Aa

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.

white 4.84 AAblack 3.74 AA largebanding medium
css
linear-gradient(135deg in oklab, #4169e1 0%, #4369df 8.28%, #486ad8 16.03%, #506ace 23.35%, #596ac0 30.32%, #636ab1 37.03%, #6d69a0 43.56%, #77678f 50%, #80647c 56.44%, #89606b 62.97%, #915d59 69.68%, #975949 76.65%, #9c553b 83.97%, #9f5331 91.72%, #a0522d 100%)
Aa

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.

white 5.09 AAblack 3.66 AA largebanding low
css
background-color: #77678f;
background-image: radial-gradient(circle farthest-corner at 6.09% 69.31%, rgba(65, 105, 225, 0.717) 0%, rgba(65, 105, 225, 0) 54.99%), radial-gradient(circle farthest-corner at 41.47% 33.33%, rgba(160, 82, 45, 0.87) 0%, rgba(160, 82, 45, 0) 50.31%);
background-image: radial-gradient(circle farthest-corner at 6.09% 69.31%, oklch(from #4169e1 l c h / 0.7169) 0%, rgb(from #4169e1 r g b / 0) 54.99%), radial-gradient(circle farthest-corner at 41.47% 33.33%, oklch(from #a0522d l c h / 0.8699) 0%, rgb(from #a0522d r g b / 0) 50.31%);

Report

  • white ink: worst 4.84:1 at 5% (AA); black ink: worst 3.74:1 at 100% (AA-large only) → use white text.
  • Banding medium: ~8px bands at 1440px — add grain 16 (≈2% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(135deg, #4169e1 0%, #4a6ad5 7.14%, #536aca 14.29%, #5b6abe 21.43%, #636ab2 28.57%, #6a69a6 35.71%, #71689a 42.86%, #77678f 50%, #7d6582 57.14%, #846376 64.29%, #8a606a 71.43%, #8f5d5c 78.57%, #955a4f 85.71%, #9b563f 92.86%, #a0522d 100%);
  background-image: linear-gradient(135deg in oklab, #4169e1 0%, #a0522d 100%);
}
tailwind v4
bg-linear-to-br/oklab from-[#4169e1] to-[#a0522d]
svg
<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="#4169e1"/><stop offset="7.14%" stop-color="#4a6ad5"/><stop offset="14.29%" stop-color="#536aca"/><stop offset="21.43%" stop-color="#5b6abe"/><stop offset="28.57%" stop-color="#636ab2"/><stop offset="35.71%" stop-color="#6a69a6"/><stop offset="42.86%" stop-color="#71689a"/><stop offset="50%" stop-color="#77678f"/><stop offset="57.14%" stop-color="#7d6582"/><stop offset="64.29%" stop-color="#846376"/><stop offset="71.43%" stop-color="#8a606a"/><stop offset="78.57%" stop-color="#8f5d5c"/><stop offset="85.71%" stop-color="#955a4f"/><stop offset="92.86%" stop-color="#9b563f"/><stop offset="100%" stop-color="#a0522d"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "royalblue-to-sienna": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.255,
            0.412,
            0.882
          ],
          "hex": "#4169e1"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.627,
            0.322,
            0.176
          ],
          "hex": "#a0522d"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(135deg in oklab, #4169e1 0%, #a0522d 100%)",
        "interpolation": "oklab",
        "angle": 135,
        "name": "royalblue-to-sienna",
        "contrast": {
          "white": {
            "ratio": 4.837,
            "at": 0.0456,
            "passesAA": true,
            "passesAALarge": true
          },
          "black": {
            "ratio": 3.74,
            "at": 1,
            "passesAA": false,
            "passesAALarge": true
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Royal Blue to Sienna, interpolated in oklab."
  }
}

More from Royal Blue

mcpConnect your agent to the gradient engine
live endpoint

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.

endpointhttps://mcp.brandsweets.com/gradients/mcp
claude mcp add --transport http brandsweets-gradients https://mcp.brandsweets.com/gradients/mcp
try this prompt

make a royal blue to sienna 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