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

# Utils

> [`Utils`](#utils)

## Classes

### Utils

#### Constructors

##### Constructor

```ts
new Utils(): Utils;
```

###### Returns

#### Methods

##### convertByteToPercent()

```ts
static convertByteToPercent(value): string;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `value` | `number` |

###### Returns

`string`

##### convertPercentToByte()

```ts
static convertPercentToByte(value): number;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `value` | `string` |

###### Returns

`number`

##### isValidRgbColor()

```ts
static isValidRgbColor(value): boolean;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `value` | `string` |

###### Returns

`boolean`
