Colour to colour · generated

Eggplant to Periwinkle gradient

Eggplant (#614051) into Periwinkle (#ccccff) — 63° 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.

Eggplant → Periwinkle
black text · worst 2.36:1 · fails
white 1.54 failsblack 2.36 failsbanding 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 1.54 failsblack 2.36 failsbanding medium
css
linear-gradient(135deg in oklab, #614051 0%, #ccccff 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 1.54 failsblack 2.36 failsbanding medium
css
linear-gradient(135deg in oklch shorter hue, #614051 0%, #ccccff 100%)

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

sRGB78%
OKLab79%
OKLCH85%

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 1.54 failsblack 2.36 failsbanding medium
css
linear-gradient(135deg in oklab, #614051 0%, #634253 8.28%, #67475a 16.03%, #6d4f64 23.35%, #765a71 30.32%, #806680 37.03%, #8b7491 43.56%, #9683a4 50%, #a192b7 56.44%, #aca1c9 62.97%, #b6aeda 69.68%, #bfbae9 76.65%, #c6c4f5 83.97%, #cacafc 91.72%, #ccccff 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 2.65 failsblack 5.55 AAbanding low
css
background-color: #9683a4;
background-image: radial-gradient(circle farthest-corner at 36.41% 79.5%, rgba(204, 204, 255, 0.743) 0%, rgba(204, 204, 255, 0) 59.99%), radial-gradient(circle farthest-corner at 54.62% 38.14%, rgba(97, 64, 81, 0.841) 0%, rgba(97, 64, 81, 0) 46.14%);
background-image: radial-gradient(circle farthest-corner at 36.41% 79.5%, oklch(from #ccccff l c h / 0.7432) 0%, rgb(from #ccccff r g b / 0) 59.99%), radial-gradient(circle farthest-corner at 54.62% 38.14%, oklch(from #614051 l c h / 0.8409) 0%, rgb(from #614051 r g b / 0) 46.14%);

Report

  • white ink: worst 1.54:1 at 100% (fails AA); black ink: worst 2.36:1 at 0% (fails AA) → use black 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: ~8px bands at 1440px — add grain 17 (≈2% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(135deg, #614051 0%, #69495c 7.14%, #705368 14.29%, #785c73 21.43%, #7f667f 28.57%, #876f8b 35.71%, #8e7997 42.86%, #9683a4 50%, #9e8db0 57.14%, #a597bd 64.29%, #ada2ca 71.43%, #b5acd7 78.57%, #bcb7e4 85.71%, #c4c1f2 92.86%, #ccccff 100%);
  background-image: linear-gradient(135deg in oklab, #614051 0%, #ccccff 100%);
}
tailwind v4
bg-linear-to-br/oklab from-[#614051] to-[#ccccff]
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="#614051"/><stop offset="7.14%" stop-color="#69495c"/><stop offset="14.29%" stop-color="#705368"/><stop offset="21.43%" stop-color="#785c73"/><stop offset="28.57%" stop-color="#7f667f"/><stop offset="35.71%" stop-color="#876f8b"/><stop offset="42.86%" stop-color="#8e7997"/><stop offset="50%" stop-color="#9683a4"/><stop offset="57.14%" stop-color="#9e8db0"/><stop offset="64.29%" stop-color="#a597bd"/><stop offset="71.43%" stop-color="#ada2ca"/><stop offset="78.57%" stop-color="#b5acd7"/><stop offset="85.71%" stop-color="#bcb7e4"/><stop offset="92.86%" stop-color="#c4c1f2"/><stop offset="100%" stop-color="#ccccff"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "eggplant-to-periwinkle": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.38,
            0.251,
            0.318
          ],
          "hex": "#614051"
        },
        "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 oklab, #614051 0%, #ccccff 100%)",
        "interpolation": "oklab",
        "angle": 135,
        "name": "eggplant-to-periwinkle",
        "contrast": {
          "white": {
            "ratio": 1.539,
            "at": 1,
            "passesAA": false,
            "passesAALarge": false
          },
          "black": {
            "ratio": 2.36,
            "at": 0,
            "passesAA": false,
            "passesAALarge": false
          },
          "suggestedInk": "#000000"
        }
      }
    },
    "$description": "Eggplant to Periwinkle, interpolated in oklab."
  }
}

More from Eggplant

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 eggplant 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