# Sleepless Night gradient

Sleepless Night is a purple gradient from WebGradients (MIT), rendered in OKLab.

### Sleepless Night

- Slug: `sleepless-night` · Page: https://brandsweets.com/gradients/sleepless-night
- Stops: #5271c4 @0%, #b19fff @48%, #eca1fe @100% · angle 135° · source webgradients
- Families: purple, blue · Moods: cool
- CSS: `linear-gradient(135deg in oklab, #5271c4 0%, #b19fff 48%, #eca1fe 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#5271c4] via-[#b19fff] via-48% to-[#eca1fe]`
- Contrast (worst point): white 1.89:1 fail · black 4.52:1 AA · banding high
- Maker: https://brandsweets.com/gradients/new/v1.5271c4_0-b19fff_48-eca1fe_100?a=135
- Colors: https://brandsweets.com/colors/5271c4, https://brandsweets.com/colors/b19fff, https://brandsweets.com/colors/eca1fe

## The same stops in other spaces

- sRGB (the source's own look): `linear-gradient(135deg in srgb, #5271c4 0%, #b19fff 48%, #eca1fe 100%)`
- OKLCH shorter hue: `linear-gradient(135deg in oklch shorter hue, #5271c4 0%, #b19fff 48%, #eca1fe 100%)`

Family pages: https://brandsweets.com/gradients/purple, https://brandsweets.com/gradients/blue

## Gradient maker

Every maker URL is the gradient's state: `/gradients/new/v1.<hex>-<hex>[_pos]?a=135&in=oklch&hue=shorter&e=soft&g=8`. Hand one to a human, let them refine, and read the link they return.

## Connect an agent

Point any MCP client at the BrandSweets gradients endpoint for the same engine and corpus:

- Endpoint: https://mcp.brandsweets.com/gradients/mcp
- Tools: `make_gradient` (2–5 colours → CSS with the interpolation space, Tailwind v4, SVG, PNG URL, DTCG token + the contrast/banding/gamut report), `brand_gradients` (brand slug or palette → brand gradient, hero, button, variants).
- Resource: `gradients://corpus` — the whole bundled corpus as JSON.
