# toOklab

function in `@dioramajs/diorama/kit`

```ts
import { toOklab } from '@dioramajs/diorama/kit'
```

OKLab (Björn Ottosson) of a linear sRGB colour, three's working space. Mixed in OKLab, two
colours meet through a clean middle instead of a muddy grey.

```ts
function toOklab(color: Color): Oklab
```

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

Also exported from `@dioramajs/effects/kit`.

Defined in [packages/effects/src/kit.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/kit.ts#L451).
