Named gradient · uiGradients

Sin City Red

Sin City Red is a red gradient from uiGradients (MIT) — #ed213a → #93291e 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 4.30:1 · AA large
white 4.30 AA largeblack 2.58 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.

sRGB77%
OKLab77%
OKLCH77%

Report

  • white ink: worst 4.30:1 at 0% (AA-large only); black ink: worst 2.58:1 at 100% (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: ~16px bands at 1440px — add grain 33 (≈2% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(90deg, #ed213a 0%, #e62338 7.14%, #e02436 14.29%, #d92534 21.43%, #d32632 28.57%, #cc2730 35.71%, #c6282e 42.86%, #bf282c 50%, #b9292a 57.14%, #b22928 64.29%, #ac2926 71.43%, #a62924 78.57%, #9f2922 85.71%, #992920 92.86%, #93291e 100%);
  background-image: linear-gradient(90deg in oklab, #ed213a 0%, #93291e 100%);
}
tailwind v4
bg-linear-to-r/oklab from-[#ed213a] to-[#93291e]
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="#ed213a"/><stop offset="7.14%" stop-color="#e62338"/><stop offset="14.29%" stop-color="#e02436"/><stop offset="21.43%" stop-color="#d92534"/><stop offset="28.57%" stop-color="#d32632"/><stop offset="35.71%" stop-color="#cc2730"/><stop offset="42.86%" stop-color="#c6282e"/><stop offset="50%" stop-color="#bf282c"/><stop offset="57.14%" stop-color="#b9292a"/><stop offset="64.29%" stop-color="#b22928"/><stop offset="71.43%" stop-color="#ac2926"/><stop offset="78.57%" stop-color="#a62924"/><stop offset="85.71%" stop-color="#9f2922"/><stop offset="92.86%" stop-color="#992920"/><stop offset="100%" stop-color="#93291e"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "sin-city-red": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.929,
            0.129,
            0.227
          ],
          "hex": "#ed213a"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.576,
            0.161,
            0.118
          ],
          "hex": "#93291e"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(90deg in oklab, #ed213a 0%, #93291e 100%)",
        "interpolation": "oklab",
        "angle": 90,
        "name": "Sin City Red",
        "contrast": {
          "white": {
            "ratio": 4.304,
            "at": 0,
            "passesAA": false,
            "passesAALarge": true
          },
          "black": {
            "ratio": 2.577,
            "at": 1,
            "passesAA": false,
            "passesAALarge": false
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Sin City Red (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 Sin City Red gradient (#ed213a, #93291e), 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