Named gradient · uiGradients

Shroom Haze

Shroom Haze is a purple gradient from uiGradients (MIT) — #5c258d → #4389a2 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
white text · worst 3.93:1 · AA large
white 3.93 AA largeblack 2.10 failsbanding 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.

sRGB65%
OKLab62%
OKLCH66%

Report

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

Export

css
.gradient {
  background-image: linear-gradient(90deg, #5c258d 0%, #5c2f8f 7.14%, #5c3790 14.29%, #5c3f92 21.43%, #5b4694 28.57%, #5b4e95 35.71%, #5a5597 42.86%, #585b99 50%, #57629a 57.14%, #55699b 64.29%, #526f9d 71.43%, #4f769e 78.57%, #4c7ca0 85.71%, #4883a1 92.86%, #4389a2 100%);
  background-image: linear-gradient(90deg in oklab, #5c258d 0%, #4389a2 100%);
}
tailwind v4
bg-linear-to-r/oklab from-[#5c258d] to-[#4389a2]
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="#5c258d"/><stop offset="7.14%" stop-color="#5c2f8f"/><stop offset="14.29%" stop-color="#5c3790"/><stop offset="21.43%" stop-color="#5c3f92"/><stop offset="28.57%" stop-color="#5b4694"/><stop offset="35.71%" stop-color="#5b4e95"/><stop offset="42.86%" stop-color="#5a5597"/><stop offset="50%" stop-color="#585b99"/><stop offset="57.14%" stop-color="#57629a"/><stop offset="64.29%" stop-color="#55699b"/><stop offset="71.43%" stop-color="#526f9d"/><stop offset="78.57%" stop-color="#4f769e"/><stop offset="85.71%" stop-color="#4c7ca0"/><stop offset="92.86%" stop-color="#4883a1"/><stop offset="100%" stop-color="#4389a2"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "shroom-haze": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.361,
            0.145,
            0.553
          ],
          "hex": "#5c258d"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.263,
            0.537,
            0.635
          ],
          "hex": "#4389a2"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(90deg in oklab, #5c258d 0%, #4389a2 100%)",
        "interpolation": "oklab",
        "angle": 90,
        "name": "Shroom Haze",
        "contrast": {
          "white": {
            "ratio": 3.934,
            "at": 1,
            "passesAA": false,
            "passesAALarge": true
          },
          "black": {
            "ratio": 2.104,
            "at": 0,
            "passesAA": false,
            "passesAALarge": false
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Shroom Haze (uiGradients, MIT), rendered in OKLab."
  }
}

Tagged

More purple 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 Shroom Haze gradient (#5c258d, #4389a2), 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