---
title: "ColorUtils | Customer&#x27;s Canvas"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/ColorUtils/"
archived: false
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Customer's Canvas Hub"
    versions: ["cloud"]
    entity_id: "https://customerscanvas.com/products/hub#software-application"
  - product: "Design Atoms JS"
    versions: ["7.4"]
---

# ColorUtils

**Applies to:** Customer's Canvas On-Premises; Customer's Canvas Hub cloud; Design Atoms JS 7.4

> API reference for the ColorUtils module in @aurigma/design-atoms.

## Classes

### ColorUtils

#### Constructors

##### Constructor

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

###### Returns

[`ColorUtils`](#colorutils)

#### 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`
