Named gradient · uiGradients

Love and Liberty

Love and Liberty is a purple gradient from uiGradients (MIT) — #200122 → #6f0000 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 12.53:1 · AA
white 12.53 AAblack 1.09 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.

sRGB71%
OKLab69%
OKLCH71%

Report

  • white ink: worst 12.53:1 at 100% (AA); black ink: worst 1.09:1 at 0% (fails AA) → use white text.
  • Banding high: ~18px bands at 1440px — add grain 37 (≈2% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(90deg, #200122 0%, #250221 7.14%, #2a0321 14.29%, #2f0420 21.43%, #35051f 28.57%, #3a051e 35.71%, #40051d 42.86%, #45061b 50%, #4b0619 57.14%, #510517 64.29%, #570514 71.43%, #5d0411 78.57%, #63030d 85.71%, #690207 92.86%, #6f0000 100%);
  background-image: linear-gradient(90deg in oklab, #200122 0%, #6f0000 100%);
}
tailwind v4
bg-linear-to-r/oklab from-[#200122] to-[#6f0000]
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="#200122"/><stop offset="7.14%" stop-color="#250221"/><stop offset="14.29%" stop-color="#2a0321"/><stop offset="21.43%" stop-color="#2f0420"/><stop offset="28.57%" stop-color="#35051f"/><stop offset="35.71%" stop-color="#3a051e"/><stop offset="42.86%" stop-color="#40051d"/><stop offset="50%" stop-color="#45061b"/><stop offset="57.14%" stop-color="#4b0619"/><stop offset="64.29%" stop-color="#510517"/><stop offset="71.43%" stop-color="#570514"/><stop offset="78.57%" stop-color="#5d0411"/><stop offset="85.71%" stop-color="#63030d"/><stop offset="92.86%" stop-color="#690207"/><stop offset="100%" stop-color="#6f0000"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "love-and-liberty": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.125,
            0.004,
            0.133
          ],
          "hex": "#200122"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.435,
            0,
            0
          ],
          "hex": "#6f0000"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(90deg in oklab, #200122 0%, #6f0000 100%)",
        "interpolation": "oklab",
        "angle": 90,
        "name": "Love and Liberty",
        "contrast": {
          "white": {
            "ratio": 12.531,
            "at": 1,
            "passesAA": true,
            "passesAALarge": true
          },
          "black": {
            "ratio": 1.089,
            "at": 0,
            "passesAA": false,
            "passesAALarge": false
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Love and Liberty (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 Love and Liberty gradient (#200122, #6f0000), 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