Named gradient · uiGradients

Compare Now

Compare Now is a red gradient from uiGradients (MIT) — #ef3b36 → #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 5.35:1 · AA
white 1.00 failsblack 5.35 AAbanding medium

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 5.35:1 at 0% (AA) → use black text.
  • White text disappears completely at 100% (1.00:1 crossing).
  • Banding medium: ~7px bands at 1440px — add grain 14 (≈2% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(90deg, #ef3b36 0%, #f34f46 7.14%, #f66055 14.29%, #f97064 21.43%, #fb7e72 28.57%, #fd8c80 35.71%, #ff9a8e 42.86%, #ffa79c 50%, #ffb4aa 57.14%, #ffc0b8 64.29%, #ffcdc6 71.43%, #ffdad4 78.57%, #ffe6e2 85.71%, #fff3f1 92.86%, #ffffff 100%);
  background-image: linear-gradient(90deg in oklab, #ef3b36 0%, #ffffff 100%);
}
tailwind v4
bg-linear-to-r/oklab from-[#ef3b36] 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="#ef3b36"/><stop offset="7.14%" stop-color="#f34f46"/><stop offset="14.29%" stop-color="#f66055"/><stop offset="21.43%" stop-color="#f97064"/><stop offset="28.57%" stop-color="#fb7e72"/><stop offset="35.71%" stop-color="#fd8c80"/><stop offset="42.86%" stop-color="#ff9a8e"/><stop offset="50%" stop-color="#ffa79c"/><stop offset="57.14%" stop-color="#ffb4aa"/><stop offset="64.29%" stop-color="#ffc0b8"/><stop offset="71.43%" stop-color="#ffcdc6"/><stop offset="78.57%" stop-color="#ffdad4"/><stop offset="85.71%" stop-color="#ffe6e2"/><stop offset="92.86%" stop-color="#fff3f1"/><stop offset="100%" stop-color="#ffffff"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "compare-now": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.937,
            0.231,
            0.212
          ],
          "hex": "#ef3b36"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            1,
            1,
            1
          ],
          "hex": "#ffffff"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(90deg in oklab, #ef3b36 0%, #ffffff 100%)",
        "interpolation": "oklab",
        "angle": 90,
        "name": "Compare Now",
        "contrast": {
          "white": {
            "ratio": 1,
            "at": 0.998,
            "passesAA": false,
            "passesAALarge": false
          },
          "black": {
            "ratio": 5.349,
            "at": 0,
            "passesAA": true,
            "passesAALarge": true
          },
          "suggestedInk": "#000000"
        }
      }
    },
    "$description": "Compare Now (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 Compare Now gradient (#ef3b36, #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