Colour to colour · generated

Midnight Blue to Blush Pink gradient

Midnight Blue (#191970) into Blush Pink (#e8b4b8) — 101° 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.

Midnight Blue → Blush Pink
white text · worst 1.80:1 · fails
white 1.80 failsblack 1.41 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.80 failsblack 1.41 failsbanding medium
css
linear-gradient(135deg in oklab, #191970 0%, #e8b4b8 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.80 failsblack 1.41 failsbanding medium
css
linear-gradient(135deg in oklch shorter hue, #191970 0%, #e8b4b8 100%)

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

sRGB55%
OKLab50%
OKLCH59%

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.80 failsblack 1.41 failsbanding medium
css
linear-gradient(135deg in oklab, #191970 0%, #1b1c71 8.28%, #212475 16.03%, #2c2f7a 23.35%, #3a3c81 30.32%, #4c4a88 37.03%, #615a90 43.56%, #776998 50%, #8e79a0 56.44%, #a488a6 62.97%, #ba96ac 69.68%, #cca2b1 76.65%, #dbacb5 83.97%, #e5b2b7 91.72%, #e8b4b8 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.89 failsblack 3.48 AA largebanding low
css
background-color: #776998;
background-image: radial-gradient(circle farthest-corner at 73.4% 2.21%, rgba(25, 25, 112, 0.818) 0%, rgba(25, 25, 112, 0) 53.14%), radial-gradient(circle farthest-corner at 51.57% 70.11%, rgba(232, 180, 184, 0.76) 0%, rgba(232, 180, 184, 0) 50.79%);
background-image: radial-gradient(circle farthest-corner at 73.4% 2.21%, oklch(from #191970 l c h / 0.8175) 0%, rgb(from #191970 r g b / 0) 53.14%), radial-gradient(circle farthest-corner at 51.57% 70.11%, oklch(from #e8b4b8 l c h / 0.7602) 0%, rgb(from #e8b4b8 r g b / 0) 50.79%);

Report

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

Export

css
.gradient {
  background-image: linear-gradient(135deg, #191970 0%, #242776 7.14%, #30337c 14.29%, #3d3e82 21.43%, #4b4988 28.57%, #59548d 35.71%, #685f93 42.86%, #776998 50%, #86749d 57.14%, #967fa2 64.29%, #a689a7 71.43%, #b694ab 78.57%, #c69fb0 85.71%, #d7a9b4 92.86%, #e8b4b8 100%);
  background-image: linear-gradient(135deg in oklab, #191970 0%, #e8b4b8 100%);
}
tailwind v4
bg-linear-to-br/oklab from-[#191970] to-[#e8b4b8]
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="#191970"/><stop offset="7.14%" stop-color="#242776"/><stop offset="14.29%" stop-color="#30337c"/><stop offset="21.43%" stop-color="#3d3e82"/><stop offset="28.57%" stop-color="#4b4988"/><stop offset="35.71%" stop-color="#59548d"/><stop offset="42.86%" stop-color="#685f93"/><stop offset="50%" stop-color="#776998"/><stop offset="57.14%" stop-color="#86749d"/><stop offset="64.29%" stop-color="#967fa2"/><stop offset="71.43%" stop-color="#a689a7"/><stop offset="78.57%" stop-color="#b694ab"/><stop offset="85.71%" stop-color="#c69fb0"/><stop offset="92.86%" stop-color="#d7a9b4"/><stop offset="100%" stop-color="#e8b4b8"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "midnightblue-to-blush-pink": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.098,
            0.098,
            0.439
          ],
          "hex": "#191970"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.91,
            0.706,
            0.722
          ],
          "hex": "#e8b4b8"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(135deg in oklab, #191970 0%, #e8b4b8 100%)",
        "interpolation": "oklab",
        "angle": 135,
        "name": "midnightblue-to-blush-pink",
        "contrast": {
          "white": {
            "ratio": 1.802,
            "at": 1,
            "passesAA": false,
            "passesAALarge": false
          },
          "black": {
            "ratio": 1.414,
            "at": 0,
            "passesAA": false,
            "passesAALarge": false
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Midnight Blue to Blush Pink, interpolated in oklab."
  }
}

More from Midnight 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 midnight blue to blush pink 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