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

## getColorFromHexRgbOrName variable

### getColorFromHexRgbOrName variable

<b>Signature</b>

```typescript
getColorFromHexRgbOrName: (color: string, theme?: GrafanaThemeType | undefined) => string
```
<b>Import</b>

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