Named gradient · uiGradients

Margo

Margo is a yellow gradient from uiGradients (MIT) — #ffefba → #ffffff 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 18.31:1 · AA
white 1.00 failsblack 18.31 AAbanding 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.

sRGB0%
OKLab0%
OKLCH0%

Report

  • white ink: worst 1.00:1 at 100% (fails AA); black ink: worst 18.31:1 at 0% (AA) → use black text.
  • White text disappears completely at 100% (1.00:1 crossing).
  • Banding high: ~21px bands at 1440px — add grain 41 (≈3% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(90deg, #ffefba 0%, #fff0bf 7.14%, #fff1c4 14.29%, #fff3c9 21.43%, #fff4ce 28.57%, #fff5d3 35.71%, #fff6d8 42.86%, #fff7dd 50%, #fff8e2 57.14%, #fff9e7 64.29%, #fffbec 71.43%, #fffcf1 78.57%, #fffdf5 85.71%, #fffefa 92.86%, #ffffff 100%);
  background-image: linear-gradient(90deg in oklab, #ffefba 0%, #ffffff 100%);
}
tailwind v4
bg-linear-to-r/oklab from-[#ffefba] to-[#ffffff]
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="#ffefba"/><stop offset="7.14%" stop-color="#fff0bf"/><stop offset="14.29%" stop-color="#fff1c4"/><stop offset="21.43%" stop-color="#fff3c9"/><stop offset="28.57%" stop-color="#fff4ce"/><stop offset="35.71%" stop-color="#fff5d3"/><stop offset="42.86%" stop-color="#fff6d8"/><stop offset="50%" stop-color="#fff7dd"/><stop offset="57.14%" stop-color="#fff8e2"/><stop offset="64.29%" stop-color="#fff9e7"/><stop offset="71.43%" stop-color="#fffbec"/><stop offset="78.57%" stop-color="#fffcf1"/><stop offset="85.71%" stop-color="#fffdf5"/><stop offset="92.86%" stop-color="#fffefa"/><stop offset="100%" stop-color="#ffffff"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "margo": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            1,
            0.937,
            0.729
          ],
          "hex": "#ffefba"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            1,
            1,
            1
          ],
          "hex": "#ffffff"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(90deg in oklab, #ffefba 0%, #ffffff 100%)",
        "interpolation": "oklab",
        "angle": 90,
        "name": "Margo",
        "contrast": {
          "white": {
            "ratio": 1,
            "at": 0.996,
            "passesAA": false,
            "passesAALarge": false
          },
          "black": {
            "ratio": 18.308,
            "at": 0,
            "passesAA": true,
            "passesAALarge": true
          },
          "suggestedInk": "#000000"
        }
      }
    },
    "$description": "Margo (uiGradients, MIT), rendered in OKLab."
  }
}

Tagged

More yellow 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 Margo gradient (#ffefba, #ffffff), 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