Named gradient · uiGradients

Master Card

Master Card is a red gradient from uiGradients (MIT) — #f46b45 → #eea849 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 7.04:1 · AA
white 2.03 failsblack 7.04 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.

sRGB87%
OKLab87%
OKLCH87%

Report

  • white ink: worst 2.03:1 at 100% (fails AA); black ink: worst 7.04:1 at 0% (AA) → use black text.
  • Banding high: ~24px bands at 1440px — add grain 45 (≈3% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(90deg, #f46b45 0%, #f47045 7.14%, #f47546 14.29%, #f37946 21.43%, #f37e46 28.57%, #f38247 35.71%, #f38747 42.86%, #f28b47 50%, #f28f48 57.14%, #f19448 64.29%, #f19848 71.43%, #f09c48 78.57%, #efa049 85.71%, #efa449 92.86%, #eea849 100%);
  background-image: linear-gradient(90deg in oklab, #f46b45 0%, #eea849 100%);
}
tailwind v4
bg-linear-to-r/oklab from-[#f46b45] to-[#eea849]
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="#f46b45"/><stop offset="7.14%" stop-color="#f47045"/><stop offset="14.29%" stop-color="#f47546"/><stop offset="21.43%" stop-color="#f37946"/><stop offset="28.57%" stop-color="#f37e46"/><stop offset="35.71%" stop-color="#f38247"/><stop offset="42.86%" stop-color="#f38747"/><stop offset="50%" stop-color="#f28b47"/><stop offset="57.14%" stop-color="#f28f48"/><stop offset="64.29%" stop-color="#f19448"/><stop offset="71.43%" stop-color="#f19848"/><stop offset="78.57%" stop-color="#f09c48"/><stop offset="85.71%" stop-color="#efa049"/><stop offset="92.86%" stop-color="#efa449"/><stop offset="100%" stop-color="#eea849"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "master-card": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.957,
            0.42,
            0.271
          ],
          "hex": "#f46b45"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.933,
            0.659,
            0.286
          ],
          "hex": "#eea849"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(90deg in oklab, #f46b45 0%, #eea849 100%)",
        "interpolation": "oklab",
        "angle": 90,
        "name": "Master Card",
        "contrast": {
          "white": {
            "ratio": 2.032,
            "at": 1,
            "passesAA": false,
            "passesAALarge": false
          },
          "black": {
            "ratio": 7.036,
            "at": 0,
            "passesAA": true,
            "passesAALarge": true
          },
          "suggestedInk": "#000000"
        }
      }
    },
    "$description": "Master Card (uiGradients, MIT), rendered in OKLab."
  }
}

Tagged

More red 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 Master Card gradient (#f46b45, #eea849), 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