# hueOf

Canonical: https://docs.shumoku.dev/en/library/api/hueOf
Language: en

@shumoku/core · 0.5.0 · function

# hueOf

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/themes/tone.ts#L112)

A colour's OKLCH hue, in degrees.

```
hueOf(hex: string): number
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `hex` | `string` | No additional description. | `—` |

## Returns

```
number
```

[`libs/@shumoku/core/src/libs/@shumoku/core/src/themes/tone.ts:112`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/themes/tone.ts#L112)
