# Lilac to Midnight Blue gradient

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

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

## OKLab

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

## OKLCH (shorter hue)

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

## Eased (soft)

- CSS: `linear-gradient(135deg in oklab, #c8a2c8 0%, #c5a0c7 8.28%, #bd9bc3 16.03%, #b192be 23.35%, #a188b8 30.32%, #8f7bb0 37.03%, #7c6ea7 43.56%, #69609e 50%, #565294 56.44%, #45448b 62.97%, #363782 69.68%, #292c7b 76.65%, #202275 83.97%, #1b1c71 91.72%, #191970 100%)`
- Tailwind: `bg-[linear-gradient(135deg_in_oklab,#c8a2c8_0%,#c5a0c7_8.28%,#bd9bc3_16.03%,#b192be_23.35%,#a188b8_30.32%,#8f7bb0_37.03%,#7c6ea7_43.56%,#69609e_50%,#565294_56.44%,#45448b_62.97%,#363782_69.68%,#292c7b_76.65%,#202275_83.97%,#1b1c71_91.72%,#191970_100%)]`
- Contrast (worst point): white 2.22:1 fail · black 1.41:1 fail · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.c8a2c8-191970?a=135&e=soft&n=15

## Mesh

- CSS: `radial-gradient(circle farthest-corner at 99.22% 24.03%, oklch(from #191970 l c h / 0.7006) 0%, rgb(from #191970 r g b / 0) 48.89%), radial-gradient(circle farthest-corner at 50.08% 89.28%, oklch(from #c8a2c8 l c h / 0.8122) 0%, rgb(from #c8a2c8 r g b / 0) 45.28%)`
- Tailwind: `bg-[radial-gradient(circle_farthest-corner_at_99.22%_24.03%,oklch(from_#191970_l_c_h_/_0.7006)_0%,rgb(from_#191970_r_g_b_/_0)_48.89%),radial-gradient(circle_farthest-corner_at_50.08%_89.28%,oklch(from_#c8a2c8_l_c_h_/_0.8122)_0%,rgb(from_#c8a2c8_r_g_b_/_0)_45.28%)]`
- Contrast (worst point): white 4.37:1 AA-large · black 3.67:1 AA-large · banding low
- Maker: https://brandsweets.com/gradients/new/v1.c8a2c8-191970?k=mesh&seed=lilac-to-midnightblue

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