# Midnight Blue to Lilac gradient

Midnight Blue (#191970) to Lilac (#c8a2c8), interpolated perceptually. The engine's pick for this pair is oklab.

- Page: https://brandsweets.com/gradients/midnightblue-to-lilac
- Colors: https://brandsweets.com/colors/midnightblue, https://brandsweets.com/colors/lilac
- Reverse: https://brandsweets.com/gradients/lilac-to-midnightblue

## OKLab

- CSS: `linear-gradient(135deg in oklab, #191970 0%, #c8a2c8 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#191970] to-[#c8a2c8]`
- Contrast (worst point): white 2.22:1 fail · black 1.41:1 fail · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.191970-c8a2c8?a=135

## OKLCH (shorter hue)

- CSS: `linear-gradient(135deg in oklch shorter hue, #191970 0%, #c8a2c8 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#191970] to-[#c8a2c8]`
- Contrast (worst point): white 2.22:1 fail · black 1.41:1 fail · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.191970-c8a2c8?a=135&in=oklch&hue=shorter

## Eased (soft)

- CSS: `linear-gradient(135deg in oklab, #191970 0%, #1b1c71 8.28%, #202275 16.03%, #292c7b 23.35%, #363782 30.32%, #45448b 37.03%, #565294 43.56%, #69609e 50%, #7c6ea7 56.44%, #8f7bb0 62.97%, #a188b8 69.68%, #b192be 76.65%, #bd9bc3 83.97%, #c5a0c7 91.72%, #c8a2c8 100%)`
- Tailwind: `bg-[linear-gradient(135deg_in_oklab,#191970_0%,#1b1c71_8.28%,#202275_16.03%,#292c7b_23.35%,#363782_30.32%,#45448b_37.03%,#565294_43.56%,#69609e_50%,#7c6ea7_56.44%,#8f7bb0_62.97%,#a188b8_69.68%,#b192be_76.65%,#bd9bc3_83.97%,#c5a0c7_91.72%,#c8a2c8_100%)]`
- Contrast (worst point): white 2.22:1 fail · black 1.41:1 fail · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.191970-c8a2c8?a=135&e=soft&n=15

## Mesh

- CSS: `radial-gradient(circle farthest-corner at 22.94% 1.34%, oklch(from #191970 l c h / 0.8962) 0%, rgb(from #191970 r g b / 0) 50.53%), radial-gradient(circle farthest-corner at 62.99% 34.48%, oklch(from #c8a2c8 l c h / 0.7494) 0%, rgb(from #c8a2c8 r g b / 0) 50.32%)`
- Tailwind: `bg-[radial-gradient(circle_farthest-corner_at_22.94%_1.34%,oklch(from_#191970_l_c_h_/_0.8962)_0%,rgb(from_#191970_r_g_b_/_0)_50.53%),radial-gradient(circle_farthest-corner_at_62.99%_34.48%,oklch(from_#c8a2c8_l_c_h_/_0.7494)_0%,rgb(from_#c8a2c8_r_g_b_/_0)_50.32%)]`
- Contrast (worst point): white 3.83:1 AA-large · black 1.87:1 fail · banding high
- Maker: https://brandsweets.com/gradients/new/v1.191970-c8a2c8?k=mesh&seed=midnightblue-to-lilac

## 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.
