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

## getTagColor() function

### getTagColor() function

<b>Signature</b>

```typescript
export declare function getTagColor(index: number): {
    color: string;
    borderColor: string;
};
```
<b>Import</b>

```typescript
import { getTagColor } from '@grafana/ui';
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  index | <code>number</code> |  |

<b>Returns:</b>

`{
    color: string;
    borderColor: string;
}`

