# Subaru gradient

Gradients derived from Subaru's published colour tokens (nominative use; no brand assets). Deterministic: the same values are served as `--brand-gradient*` in the brand's brand.css.

- Page: https://brandsweets.com/gradients/brands/subaru-com
- Brand colors: https://brandsweets.com/colors/brands/subaru-com · Brand page: https://brandsweets.com/b/subaru-com
- Palette: primary #5c6163, secondary #1971d4, accents #468254
- Source: https://subaru.com (extracted 2026-09-02)

## Brand gradient

- CSS: `linear-gradient(135deg in oklab, #5c6163 0%, #1971d4 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#5c6163] to-[#1971d4]`
- Contrast (worst point): white 4.82:1 AA · black 3.34:1 AA-large · banding high
- Maker: https://brandsweets.com/gradients/new/v1.5c6163-1971d4?a=135

## Hero background

Chroma ×0.35 so it can carry text; ink white (inkFor at the midpoint). Passes AA for that ink at the worst point (4.74:1) without adjusting L.

- CSS: `linear-gradient(135deg in oklab, #5f6061 0%, #5b7596 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#5f6061] to-[#5b7596]`
- Contrast (worst point): white 4.74:1 AA · black 3.33:1 AA-large · banding high · ink #ffffff
- Maker: https://brandsweets.com/gradients/new/v1.5f6061-5b7596?a=135

## Button / CTA

ΔL 0.08 top→bottom in the primary's hue (a lit surface, not a rainbow); hover L +0.03, active L −0.03. White ink passes AA on the surface and both states (worst 4.67:1).

- CSS: `linear-gradient(180deg in oklch shorter hue, #676c6e 0%, #515658 100%)`
- Tailwind: `bg-linear-to-b/oklch from-[#676c6e] to-[#515658]`
- Contrast (worst point): white 5.32:1 AA · black 2.82:1 fail · banding high · ink #ffffff
- Maker: https://brandsweets.com/gradients/new/v1.676c6e-515658?a=180&in=oklch&hue=shorter
- Hover: `linear-gradient(180deg in oklch shorter hue, #707577 0%, #595e60 100%)`
- Active: `linear-gradient(180deg in oklch shorter hue, #5f6466 0%, #494e50 100%)`

## Tonal ramp

- CSS: `linear-gradient(135deg in oklch shorter hue, #909698 0%, #5c6163 50%, #2c3133 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#909698] via-[#5c6163] to-[#2c3133]`
- Contrast (worst point): white 3.00:1 fail · black 1.59:1 fail · banding high
- Maker: https://brandsweets.com/gradients/new/v1.909698-5c6163-2c3133?a=135&in=oklch&hue=shorter

## Analogous

Partner hue from the analogous rule at the source colour's lightness.

- CSS: `linear-gradient(135deg in oklab, #5c6163 0%, #5c6161 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#5c6163] to-[#5c6161]`
- Contrast (worst point): white 6.28:1 AA · black 3.34:1 AA-large · banding high
- Maker: https://brandsweets.com/gradients/new/v1.5c6163-5c6161?a=135

## Complementary

Partner hue from the complementary rule at the source colour's lightness. ΔH 178° > 140° — interpolating in oklch (shorter hue) keeps the midpoint saturated.

- CSS: `linear-gradient(135deg in oklch shorter hue, #5c6163 0%, #665e5b 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#5c6163] to-[#665e5b]`
- Contrast (worst point): white 6.25:1 AA · black 3.30:1 AA-large · banding high
- Maker: https://brandsweets.com/gradients/new/v1.5c6163-665e5b?a=135&in=oklch&hue=shorter

## Triadic

Partner hue from the triadic rule at the source colour's lightness.

- CSS: `linear-gradient(135deg in oklab, #5c6163 0%, #675d62 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#5c6163] to-[#675d62]`
- Contrast (worst point): white 6.26:1 AA · black 3.31:1 AA-large · banding high
- Maker: https://brandsweets.com/gradients/new/v1.5c6163-675d62?a=135

## CSS custom properties (brand.css)

```css
:root {
  /* Brand gradient (derived) */
  /* worst-case contrast: white 4.82:1 AA, black 3.34:1 AA-large */
  --brand-gradient: linear-gradient(135deg in oklab, #5c6163 0%, #1971d4 100%);
  /* hero — worst-case contrast: white 4.74:1 AA, black 3.33:1 AA-large; ink passes AA at the worst point */
  --brand-gradient-hero: linear-gradient(135deg in oklab, #5f6061 0%, #5b7596 100%);
  --brand-gradient-hero-ink: #ffffff;
  /* button — worst-case contrast: white 5.32:1 AA, black 2.82:1 */
  --brand-gradient-button: linear-gradient(180deg in oklch shorter hue, #676c6e 0%, #515658 100%);
  --brand-gradient-button-hover: linear-gradient(180deg in oklch shorter hue, #707577 0%, #595e60 100%);
  --brand-gradient-button-active: linear-gradient(180deg in oklch shorter hue, #5f6466 0%, #494e50 100%);
  --brand-gradient-button-ink: #ffffff;
}
```

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