Named gradient · WebGradients

Earl Gray

Earl Gray is a neutral gradient from WebGradients (MIT) — #e4e4e1 → #e4e4e1 at 0°. 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 16.48:1 · AA
white 1.27 failsblack 16.48 AAbanding low

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.

sRGB100%
OKLab100%
OKLCH100%

Report

  • white ink: worst 1.27:1 at 0% (fails AA); black ink: worst 16.48:1 at 0% (AA) → use black text.

Export

css
.gradient {
  background-image: linear-gradient(0deg, #e4e4e1 0%, #e4e4e1 7.14%, #e4e4e1 14.29%, #e4e4e1 21.43%, #e4e4e1 28.57%, #e4e4e1 35.71%, #e4e4e1 42.86%, #e4e4e1 50%, #e4e4e1 57.14%, #e4e4e1 64.29%, #e4e4e1 71.43%, #e4e4e1 78.57%, #e4e4e1 85.71%, #e4e4e1 92.86%, #e4e4e1 100%);
  background-image: linear-gradient(0deg in oklab, #e4e4e1 0%, #e4e4e1 100%);
}
tailwind v4
bg-linear-to-t/oklab from-[#e4e4e1] to-[#e4e4e1]
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="720" y1="600" x2="720" y2="0"><stop offset="0%" stop-color="#e4e4e1"/><stop offset="7.14%" stop-color="#e4e4e1"/><stop offset="14.29%" stop-color="#e4e4e1"/><stop offset="21.43%" stop-color="#e4e4e1"/><stop offset="28.57%" stop-color="#e4e4e1"/><stop offset="35.71%" stop-color="#e4e4e1"/><stop offset="42.86%" stop-color="#e4e4e1"/><stop offset="50%" stop-color="#e4e4e1"/><stop offset="57.14%" stop-color="#e4e4e1"/><stop offset="64.29%" stop-color="#e4e4e1"/><stop offset="71.43%" stop-color="#e4e4e1"/><stop offset="78.57%" stop-color="#e4e4e1"/><stop offset="85.71%" stop-color="#e4e4e1"/><stop offset="92.86%" stop-color="#e4e4e1"/><stop offset="100%" stop-color="#e4e4e1"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "earl-gray": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.894,
            0.894,
            0.882
          ],
          "hex": "#e4e4e1"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.894,
            0.894,
            0.882
          ],
          "hex": "#e4e4e1"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(0deg in oklab, #e4e4e1 0%, #e4e4e1 100%)",
        "interpolation": "oklab",
        "angle": 0,
        "name": "Earl Gray",
        "contrast": {
          "white": {
            "ratio": 1.274,
            "at": 0,
            "passesAA": false,
            "passesAALarge": false
          },
          "black": {
            "ratio": 16.483,
            "at": 0,
            "passesAA": true,
            "passesAALarge": true
          },
          "suggestedInk": "#000000"
        }
      }
    },
    "$description": "Earl Gray (WebGradients, MIT), rendered in OKLab."
  }
}

Tagged

More neutral 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 Earl Gray gradient (#e4e4e1, #e4e4e1), 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 WebGradients (MIT) — licences