Colour to colour · generated

Dark Orchid to Hunter Green gradient

Dark Orchid (#9932cc) into Hunter Green (#355e3b) — 164° 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 164° > 140° — interpolating in oklch (shorter hue) keeps the midpoint saturated.

Dark Orchid → Hunter Green
white text · worst 5.69:1 · AA
white 5.69 AAblack 2.81 failsbanding high

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 5.70 AAblack 2.82 failsbanding high
css
linear-gradient(135deg in oklab, #9932cc 0%, #355e3b 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 5.69 AAblack 2.81 failsbanding high
css
linear-gradient(135deg in oklch shorter hue, #9932cc 0%, #355e3b 100%)

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

sRGB11%
OKLab10%
OKLCH49%

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 5.69 AAblack 2.81 failsbanding high
css
linear-gradient(135deg in oklch shorter hue, #9932cc 0%, #9535ce 8.28%, #883cd3 16.03%, #7446d7 23.35%, #5752d6 30.32%, #2d5dcd 37.03%, #0066bb 43.56%, #006b97 50%, #006c80 56.44%, #006b6d 62.97%, #006a5b 69.68%, #04664b 76.65%, #276242 83.97%, #325f3d 91.72%, #355e3b 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 6.40 AAblack 2.94 failsbanding high
css
background-color: #6b5585;
background-image: radial-gradient(circle farthest-corner at 84.85% 24.46%, rgba(153, 50, 204, 0.721) 0%, rgba(153, 50, 204, 0) 52.12%), radial-gradient(circle farthest-corner at 13.15% 31.05%, rgba(53, 94, 59, 0.708) 0%, rgba(53, 94, 59, 0) 45.7%);
background-image: radial-gradient(circle farthest-corner at 84.85% 24.46%, oklch(from #9932cc l c h / 0.7214) 0%, rgb(from #9932cc r g b / 0) 52.12%), radial-gradient(circle farthest-corner at 13.15% 31.05%, oklch(from #355e3b l c h / 0.7084) 0%, rgb(from #355e3b r g b / 0) 45.7%);

Report

  • white ink: worst 5.69:1 at 1% (AA); black ink: worst 2.81:1 at 100% (fails AA) → use white text.
  • Banding high: ~10px bands at 1440px — add grain 21 (≈2% soft-light noise) or shorten the ramp.
  • 12/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, #9932cc 0%, #833fd4 7.14%, #6b4ad7 14.29%, #5154d5 21.43%, #305cce 28.57%, #0063c3 35.71%, #0069ac 42.86%, #006b97 50%, #006c87 57.14%, #006c79 64.29%, #006b6c 71.43%, #006b5e 78.57%, #006750 85.71%, #216344 92.86%, #355e3b 100%);
  background-image: linear-gradient(135deg in oklch shorter hue, #9932cc 0%, #355e3b 100%);
}
tailwind v4
bg-linear-to-br/oklch from-[#9932cc] to-[#355e3b]
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="#9932cc"/><stop offset="7.14%" stop-color="#833fd4"/><stop offset="14.29%" stop-color="#6b4ad7"/><stop offset="21.43%" stop-color="#5154d5"/><stop offset="28.57%" stop-color="#305cce"/><stop offset="35.71%" stop-color="#0063c3"/><stop offset="42.86%" stop-color="#0069ac"/><stop offset="50%" stop-color="#006b97"/><stop offset="57.14%" stop-color="#006c87"/><stop offset="64.29%" stop-color="#006c79"/><stop offset="71.43%" stop-color="#006b6c"/><stop offset="78.57%" stop-color="#006b5e"/><stop offset="85.71%" stop-color="#006750"/><stop offset="92.86%" stop-color="#216344"/><stop offset="100%" stop-color="#355e3b"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "darkorchid-to-hunter-green": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.6,
            0.196,
            0.8
          ],
          "hex": "#9932cc"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.208,
            0.369,
            0.231
          ],
          "hex": "#355e3b"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(135deg in oklch shorter hue, #9932cc 0%, #355e3b 100%)",
        "interpolation": "oklch",
        "hue": "shorter",
        "angle": 135,
        "name": "darkorchid-to-hunter-green",
        "contrast": {
          "white": {
            "ratio": 5.691,
            "at": 0.005,
            "passesAA": true,
            "passesAALarge": true
          },
          "black": {
            "ratio": 2.81,
            "at": 0.9977,
            "passesAA": false,
            "passesAALarge": false
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Dark Orchid to Hunter Green, interpolated in oklch."
  }
}

More from Dark Orchid

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 dark orchid to hunter 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