Named gradient · uiGradients

Snapchat

Snapchat is a yellow gradient from uiGradients (MIT) — #fffc00 → #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 19.18:1 · AA
white 1.00 failsblack 19.18 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 19.18:1 at 0% (AA) → use black text.
  • White text disappears completely at 100% (1.00:1 crossing).
  • Banding medium: ~6px bands at 1440px — add grain 9 (≈1% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(90deg, #fffc00 0%, #fffd3e 7.14%, #fffd59 14.29%, #fefe6e 21.43%, #fefe80 28.57%, #feff8f 35.71%, #feff9e 42.86%, #feffac 50%, #feffb9 57.14%, #feffc5 64.29%, #feffd1 71.43%, #feffdd 78.57%, #feffe9 85.71%, #fffff4 92.86%, #ffffff 100%);
  background-image: linear-gradient(90deg in oklab, #fffc00 0%, #ffffff 100%);
}
tailwind v4
bg-linear-to-r/oklab from-[#fffc00] 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="#fffc00"/><stop offset="7.14%" stop-color="#fffd3e"/><stop offset="14.29%" stop-color="#fffd59"/><stop offset="21.43%" stop-color="#fefe6e"/><stop offset="28.57%" stop-color="#fefe80"/><stop offset="35.71%" stop-color="#feff8f"/><stop offset="42.86%" stop-color="#feff9e"/><stop offset="50%" stop-color="#feffac"/><stop offset="57.14%" stop-color="#feffb9"/><stop offset="64.29%" stop-color="#feffc5"/><stop offset="71.43%" stop-color="#feffd1"/><stop offset="78.57%" stop-color="#feffdd"/><stop offset="85.71%" stop-color="#feffe9"/><stop offset="92.86%" stop-color="#fffff4"/><stop offset="100%" stop-color="#ffffff"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "snapchat": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            1,
            0.988,
            0
          ],
          "hex": "#fffc00"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            1,
            1,
            1
          ],
          "hex": "#ffffff"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(90deg in oklab, #fffc00 0%, #ffffff 100%)",
        "interpolation": "oklab",
        "angle": 90,
        "name": "Snapchat",
        "contrast": {
          "white": {
            "ratio": 1,
            "at": 0.998,
            "passesAA": false,
            "passesAALarge": false
          },
          "black": {
            "ratio": 19.176,
            "at": 0,
            "passesAA": true,
            "passesAALarge": true
          },
          "suggestedInk": "#000000"
        }
      }
    },
    "$description": "Snapchat (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 Snapchat gradient (#fffc00, #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