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

## getColorByName variable

### getColorByName variable

<b>Signature</b>

```typescript
getColorByName: (colorName: string) => ColorDefinition | undefined
```
<b>Import</b>

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