Named gradient · uiGradients

Moon Purple

Moon Purple is a blue gradient from uiGradients (MIT) — #4e54c8 → #8f94fb at 90°. Shown here interpolated in OKLab, next to the original sRGB, with the worst-case contrast for white and black text and every export.

Aa — the quick brown fox
black text · worst 3.43:1 · AA large
white 2.69 failsblack 3.43 AA largebanding high

Same stops, three spaces

The source renders this in sRGB. The number is how much chroma survives at the dullest point along the line — the difference between the first bar and the others is the grey that OKLab removes.

sRGB91%
OKLab91%
OKLCH91%

Report

  • white ink: worst 2.69:1 at 100% (fails AA); black ink: worst 3.43:1 at 0% (AA-large only) → use black text.
  • Body text fails AA everywhere on this gradient; large text (≥24px / 19px bold) is fine. Add a scrim or lower the chroma for body copy.
  • Banding high: ~22px bands at 1440px — add grain 43 (≈3% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(90deg, #4e54c8 0%, #5259cc 7.14%, #575dcf 14.29%, #5b62d3 21.43%, #6067d7 28.57%, #646bda 35.71%, #6970de 42.86%, #6d74e2 50%, #7279e5 57.14%, #777de9 64.29%, #7b82ec 71.43%, #8086f0 78.57%, #858bf4 85.71%, #8a8ff7 92.86%, #8f94fb 100%);
  background-image: linear-gradient(90deg in oklab, #4e54c8 0%, #8f94fb 100%);
}
tailwind v4
bg-linear-to-r/oklab from-[#4e54c8] to-[#8f94fb]
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="0" y1="300" x2="1440" y2="300"><stop offset="0%" stop-color="#4e54c8"/><stop offset="7.14%" stop-color="#5259cc"/><stop offset="14.29%" stop-color="#575dcf"/><stop offset="21.43%" stop-color="#5b62d3"/><stop offset="28.57%" stop-color="#6067d7"/><stop offset="35.71%" stop-color="#646bda"/><stop offset="42.86%" stop-color="#6970de"/><stop offset="50%" stop-color="#6d74e2"/><stop offset="57.14%" stop-color="#7279e5"/><stop offset="64.29%" stop-color="#777de9"/><stop offset="71.43%" stop-color="#7b82ec"/><stop offset="78.57%" stop-color="#8086f0"/><stop offset="85.71%" stop-color="#858bf4"/><stop offset="92.86%" stop-color="#8a8ff7"/><stop offset="100%" stop-color="#8f94fb"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "moon-purple": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.306,
            0.329,
            0.784
          ],
          "hex": "#4e54c8"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.561,
            0.58,
            0.984
          ],
          "hex": "#8f94fb"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(90deg in oklab, #4e54c8 0%, #8f94fb 100%)",
        "interpolation": "oklab",
        "angle": 90,
        "name": "Moon Purple",
        "contrast": {
          "white": {
            "ratio": 2.693,
            "at": 1,
            "passesAA": false,
            "passesAALarge": false
          },
          "black": {
            "ratio": 3.426,
            "at": 0,
            "passesAA": false,
            "passesAALarge": true
          },
          "suggestedInk": "#000000"
        }
      }
    },
    "$description": "Moon Purple (uiGradients, MIT), rendered in OKLab."
  }
}

Tagged

More blue gradients

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

take the Moon Purple gradient (#4e54c8, #8f94fb), re-interpolate it in oklch, and tell me the worst-case contrast for white text

Want the agent to remember your picks and write them into a living brand? Create a free BrandSweets workspace.

Machine-readable: gradients.md · From uiGradients (MIT) — licences