# oklchToHex

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

@shumoku/core · 0.5.0 · function

# oklchToHex

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

An OKLCH colour as \`#rrggbb\`.

```
oklchToHex(lightness: number, chroma: number, hue: number): string
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `lightness` | `number` | No additional description. | `—` |
| `chroma` | `number` | No additional description. | `—` |
| `hue` | `number` | No additional description. | `—` |

## Returns

```
string
```

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