Colour to colour · generated

Medium Slate Blue to Olive Green gradient

Medium Slate Blue (#7b68ee) into Olive Green (#808000) — 176° 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 176° > 140° — interpolating in oklch (shorter hue) keeps the midpoint saturated.

Medium Slate Blue → Olive Green
black text · worst 5.00:1 · AA
white 3.72 AA largeblack 5.00 AAbanding 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.07 AA largeblack 5.00 AAbanding medium
css
linear-gradient(135deg in oklab, #7b68ee 0%, #808000 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 3.72 AA largeblack 5.00 AAbanding medium
css
linear-gradient(135deg in oklch shorter hue, #7b68ee 0%, #808000 100%)

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

sRGB8%
OKLab4%
OKLCH64%

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 3.72 AA largeblack 4.99 AAbanding medium
css
linear-gradient(135deg in oklch shorter hue, #7b68ee 0%, #766aef 8.28%, #666ff0 16.03%, #4878ee 23.35%, #0082e6 30.32%, #008bca 37.03%, #0090af 43.56%, #009397 50%, #00957f 56.44%, #00965f 62.97%, #3d9142 69.68%, #5f8b2a 76.65%, #728515 83.97%, #7d8105 91.72%, #808000 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 4.10 AA largeblack 4.95 AAbanding high
css
background-color: #797c93;
background-image: radial-gradient(circle farthest-corner at 91.45% 98.53%, rgba(123, 104, 238, 0.877) 0%, rgba(123, 104, 238, 0) 50.82%), radial-gradient(circle farthest-corner at 8.65% 79.89%, rgba(128, 128, 0, 0.735) 0%, rgba(128, 128, 0, 0) 54.14%);
background-image: radial-gradient(circle farthest-corner at 91.45% 98.53%, oklch(from #7b68ee l c h / 0.8767) 0%, rgb(from #7b68ee r g b / 0) 50.82%), radial-gradient(circle farthest-corner at 8.65% 79.89%, oklch(from #808000 l c h / 0.7351) 0%, rgb(from #808000 r g b / 0) 54.14%);

Report

  • white ink: worst 3.72:1 at 49% (AA-large only); black ink: worst 5.00:1 at 98% (AA) → use black text.
  • Banding medium: ~6px bands at 1440px — add grain 11 (≈1% soft-light noise) or shorten the ramp.
  • 25/64 samples left sRGB by more than 5% and were gamut-mapped (oklch shorter); expect slight hue drift there.

Export

css
.gradient {
  background-image: linear-gradient(135deg, #7b68ee 0%, #5f72f0 7.14%, #397bec 14.29%, #0084e4 21.43%, #008bcc 28.57%, #008fb8 35.71%, #0091a7 42.86%, #009397 50%, #009487 57.14%, #009674 64.29%, #00965d 71.43%, #349247 78.57%, #568d31 85.71%, #6e871b 92.86%, #808000 100%);
  background-image: linear-gradient(135deg in oklch shorter hue, #7b68ee 0%, #808000 100%);
}
tailwind v4
bg-linear-to-br/oklch from-[#7b68ee] to-[#808000]
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="#7b68ee"/><stop offset="7.14%" stop-color="#5f72f0"/><stop offset="14.29%" stop-color="#397bec"/><stop offset="21.43%" stop-color="#0084e4"/><stop offset="28.57%" stop-color="#008bcc"/><stop offset="35.71%" stop-color="#008fb8"/><stop offset="42.86%" stop-color="#0091a7"/><stop offset="50%" stop-color="#009397"/><stop offset="57.14%" stop-color="#009487"/><stop offset="64.29%" stop-color="#009674"/><stop offset="71.43%" stop-color="#00965d"/><stop offset="78.57%" stop-color="#349247"/><stop offset="85.71%" stop-color="#568d31"/><stop offset="92.86%" stop-color="#6e871b"/><stop offset="100%" stop-color="#808000"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "mediumslateblue-to-olive": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.482,
            0.408,
            0.933
          ],
          "hex": "#7b68ee"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.502,
            0.502,
            0
          ],
          "hex": "#808000"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(135deg in oklch shorter hue, #7b68ee 0%, #808000 100%)",
        "interpolation": "oklch",
        "hue": "shorter",
        "angle": 135,
        "name": "mediumslateblue-to-olive",
        "contrast": {
          "white": {
            "ratio": 3.723,
            "at": 0.4895,
            "passesAA": false,
            "passesAALarge": true
          },
          "black": {
            "ratio": 4.999,
            "at": 0.9841,
            "passesAA": true,
            "passesAALarge": true
          },
          "suggestedInk": "#000000"
        }
      }
    },
    "$description": "Medium Slate Blue to Olive Green, interpolated in oklch."
  }
}

More from Medium Slate 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 medium slate blue to olive green 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