> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# colorPaletteToColors()

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: function
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-model/src/colors/index.ts

Returns a list of RGB color codes for all items in the provided color palette.

**Signature:**

```typescript
export declare function colorPaletteToColors(palette: IColorPalette): string[];
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| palette | [IColorPalette](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.icolorpalette/index.md) | color palette |

**Returns:**

string[]

list with the same cardinality as the color palette. RGB colors appear in the same order in which they appear in the palette
