+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "getColorDefinition"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++

## getColorDefinition variable

### getColorDefinition variable

<b>Signature</b>

```typescript
getColorDefinition: (hex: string, theme: GrafanaThemeType) => ColorDefinition | undefined
```
<b>Import</b>

```typescript
import { getColorDefinition } from '@grafana/data';
```
