---
id: fast-colors.extractpalette
title: extractPalette() function
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-colors](./fast-colors.md) &gt; [extractPalette](./fast-colors.extractpalette.md)

## extractPalette() function

Extracts a palette.

<b>Signature:</b>

```typescript
export declare function extractPalette(colors: QuantizedColor[], config?: PaletteExtractionConfig): PaletteEntry[];
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  colors | [QuantizedColor](./fast-colors.quantizedcolor.md)<!-- -->\[\] | the quantized colors |
|  config | [PaletteExtractionConfig](./fast-colors.paletteextractionconfig.md) | the extraction config |

<b>Returns:</b>

[PaletteEntry](./fast-colors.paletteentry.md)<!-- -->\[\]
