Colour to colour

Periwinkle to Eggplant gradient

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

Periwinkle → Eggplant
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, #ccccff 0%, #614051 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, #ccccff 0%, #614051 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, #ccccff 0%, #cacafc 8.28%, #c6c4f5 16.03%, #bfbae9 23.35%, #b6aeda 30.32%, #aca1c9 37.03%, #a192b7 43.56%, #9683a4 50%, #8b7491 56.44%, #806680 62.97%, #765a71 69.68%, #6d4f64 76.65%, #67475a 83.97%, #634253 91.72%, #614051 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 3.09 AA largeblack 3.62 AA largebanding low
css
background-color: #9683a4;
background-image: radial-gradient(circle farthest-corner at 32.76% 84.82%, rgba(204, 204, 255, 0.77) 0%, rgba(204, 204, 255, 0) 46.34%), radial-gradient(circle farthest-corner at 49.82% 27.28%, rgba(97, 64, 81, 0.839) 0%, rgba(97, 64, 81, 0) 58.15%);
background-image: radial-gradient(circle farthest-corner at 32.76% 84.82%, oklch(from #ccccff l c h / 0.7696) 0%, rgb(from #ccccff r g b / 0) 46.34%), radial-gradient(circle farthest-corner at 49.82% 27.28%, oklch(from #614051 l c h / 0.8386) 0%, rgb(from #614051 r g b / 0) 58.15%);

Report

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

More from Periwinkle

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