Named gradient · WebGradients

Perfect White

Perfect White is a teal gradient from WebGradients (MIT) — #e3fdf5 → #ffe6fa at 135°. 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 17.95:1 · AA
white 1.07 failsblack 17.95 AAbanding 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.

sRGB19%
OKLab19%
OKLCH62%

Report

  • white ink: worst 1.07:1 at 2% (fails AA); black ink: worst 17.95:1 at 98% (AA) → use black text.
  • Banding high: ~51px bands at 1440px — add grain 50 (≈3% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(135deg, #e3fdf5 0%, #e5fbf5 7.14%, #e7faf6 14.29%, #eaf8f6 21.43%, #ecf7f6 28.57%, #eef5f7 35.71%, #f0f3f7 42.86%, #f2f2f8 50%, #f4f0f8 57.14%, #f6eef8 64.29%, #f8edf9 71.43%, #f9ebf9 78.57%, #fbe9f9 85.71%, #fde8fa 92.86%, #ffe6fa 100%);
  background-image: linear-gradient(135deg in oklab, #e3fdf5 0%, #ffe6fa 100%);
}
tailwind v4
bg-linear-to-br/oklab from-[#e3fdf5] to-[#ffe6fa]
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="210" y1="-210" x2="1230" y2="810"><stop offset="0%" stop-color="#e3fdf5"/><stop offset="7.14%" stop-color="#e5fbf5"/><stop offset="14.29%" stop-color="#e7faf6"/><stop offset="21.43%" stop-color="#eaf8f6"/><stop offset="28.57%" stop-color="#ecf7f6"/><stop offset="35.71%" stop-color="#eef5f7"/><stop offset="42.86%" stop-color="#f0f3f7"/><stop offset="50%" stop-color="#f2f2f8"/><stop offset="57.14%" stop-color="#f4f0f8"/><stop offset="64.29%" stop-color="#f6eef8"/><stop offset="71.43%" stop-color="#f8edf9"/><stop offset="78.57%" stop-color="#f9ebf9"/><stop offset="85.71%" stop-color="#fbe9f9"/><stop offset="92.86%" stop-color="#fde8fa"/><stop offset="100%" stop-color="#ffe6fa"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "perfect-white": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.89,
            0.992,
            0.961
          ],
          "hex": "#e3fdf5"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            1,
            0.902,
            0.98
          ],
          "hex": "#ffe6fa"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(135deg in oklab, #e3fdf5 0%, #ffe6fa 100%)",
        "interpolation": "oklab",
        "angle": 135,
        "name": "Perfect White",
        "contrast": {
          "white": {
            "ratio": 1.068,
            "at": 0.0224,
            "passesAA": false,
            "passesAALarge": false
          },
          "black": {
            "ratio": 17.951,
            "at": 0.9841,
            "passesAA": true,
            "passesAALarge": true
          },
          "suggestedInk": "#000000"
        }
      }
    },
    "$description": "Perfect White (WebGradients, MIT), rendered in OKLab."
  }
}

Tagged

More teal 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 Perfect White gradient (#e3fdf5, #ffe6fa), 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