# pickAmbientBackground

```ts
function pickAmbientBackground(palette): PaletteSwatch | null;
```

Defined in: packages/asset-client/dist/index.d.ts:181

Pick the swatch best suited for an ambient surface behind the image.
Prefers muted/light tones — too vibrant a background fights the image.

Order: lightMuted → muted → lightVibrant → dominant.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `palette` | \| [`AssetPalette`](/api/nitida/sdk/type-aliases/assetpalette/) \| `null` \| `undefined` |

## Returns

[`PaletteSwatch`](/api/nitida/sdk/type-aliases/paletteswatch/) \| `null`