---
title: "ColorUtils | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/ColorUtils/"
---

# ColorUtils

> [`ColorUtils`](#colorutils)

## Classes

### ColorUtils

#### Constructors

##### Constructor

```ts
new ColorUtils(): ColorUtils;
```

###### Returns

#### Methods

##### getUniqueColors()

```ts
static getUniqueColors(colors): Color[];
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `colors` | `Color`[] |

###### Returns

`Color`[]

##### toUriComponent()

```ts
static toUriComponent(color): string;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `color` | `Color` |

###### Returns

`string`
