# HashiCorp gradient

Gradients derived from HashiCorp'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/hashicorp-com
- Brand colors: https://brandsweets.com/colors/brands/hashicorp-com · Brand page: https://brandsweets.com/b/hashicorp-com
- Palette: primary #2264d6, secondary #2b89ff, accents #2264d6
- Source: https://hashicorp.com (extracted 2026-09-02)

## Brand gradient

ΔE_OK 0.110 < 0.15 between #2264d6 and #2b89ff — a 2-stop would read as a flat fill, so this is a tonal ramp of #2264d6.

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

## Hero background

Chroma ×0.35 so it can carry text; ink white (inkFor at the midpoint). L shifted −0.14 until the ink passes AA at the worst point (4.57:1).

- CSS: `linear-gradient(135deg in oklch shorter hue, #617798 0%, #2c4268 50%, #0e1633 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#617798] via-[#2c4268] to-[#0e1633]`
- Contrast (worst point): white 4.57:1 AA · black 1.18:1 fail · banding high · ink #ffffff
- Maker: https://brandsweets.com/gradients/new/v1.617798-2c4268-0e1633?a=135&in=oklch&hue=shorter

## 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. L shifted −0.03 so white ink passes AA on the surface and both states (worst 4.56:1).

- CSS: `linear-gradient(180deg in oklch shorter hue, #2567d9 0%, #074ebe 100%)`
- Tailwind: `bg-linear-to-b/oklch from-[#2567d9] to-[#074ebe]`
- Contrast (worst point): white 5.22:1 AA · black 2.84:1 fail · banding high · ink #ffffff
- Maker: https://brandsweets.com/gradients/new/v1.2567d9-074ebe?a=180&in=oklch&hue=shorter
- Hover: `linear-gradient(180deg in oklch shorter hue, #2f71e4 0%, #1457c8 100%)`
- Active: `linear-gradient(180deg in oklch shorter hue, #1b5ecf 0%, #0044b4 100%)`

## Tonal ramp

- CSS: `linear-gradient(135deg in oklch shorter hue, #5f9fff 0%, #2264d6 50%, #002a99 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#5f9fff] via-[#2264d6] to-[#002a99]`
- Contrast (worst point): white 2.66:1 fail · black 1.79:1 fail · banding high
- Maker: https://brandsweets.com/gradients/new/v1.5f9fff-2264d6-002a99?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, #2264d6 0%, #297596 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#2264d6] to-[#297596]`
- Contrast (worst point): white 5.13:1 AA · black 3.85:1 AA-large · banding high
- Maker: https://brandsweets.com/gradients/new/v1.2264d6-297596?a=135

## Complementary

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

- CSS: `linear-gradient(135deg in oklch shorter hue, #2264d6 0%, #876625 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#2264d6] to-[#876625]`
- Contrast (worst point): white 4.75:1 AA · black 3.86:1 AA-large · banding high
- Maker: https://brandsweets.com/gradients/new/v1.2264d6-876625?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, #2264d6 0%, #bd2f3d 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#2264d6] to-[#bd2f3d]`
- Contrast (worst point): white 5.40:1 AA · black 3.63:1 AA-large · banding high
- Maker: https://brandsweets.com/gradients/new/v1.2264d6-bd2f3d?a=135

## CSS custom properties (brand.css)

```css
:root {
  /* Brand gradient (derived) */
  /* worst-case contrast: white 2.66:1, black 1.79:1 */
  --brand-gradient: linear-gradient(135deg in oklch shorter hue, #5f9fff 0%, #2264d6 50%, #002a99 100%);
  /* hero — worst-case contrast: white 4.57:1 AA, black 1.18:1; ink passes AA at the worst point */
  --brand-gradient-hero: linear-gradient(135deg in oklch shorter hue, #617798 0%, #2c4268 50%, #0e1633 100%);
  --brand-gradient-hero-ink: #ffffff;
  /* button — worst-case contrast: white 5.22:1 AA, black 2.84:1 */
  --brand-gradient-button: linear-gradient(180deg in oklch shorter hue, #2567d9 0%, #074ebe 100%);
  --brand-gradient-button-hover: linear-gradient(180deg in oklch shorter hue, #2f71e4 0%, #1457c8 100%);
  --brand-gradient-button-active: linear-gradient(180deg in oklch shorter hue, #1b5ecf 0%, #0044b4 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.
