---
id: fast-colors.xyztolab
title: xyzToLAB() function
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-colors](./fast-colors.md) &gt; [xyzToLAB](./fast-colors.xyztolab.md)

## xyzToLAB() function

Converts a [ColorXYZ](./fast-colors.colorxyz.md) to a [ColorLAB](./fast-colors.colorlab.md)

<b>Signature:</b>

```typescript
export declare function xyzToLAB(xyz: ColorXYZ): ColorLAB;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  xyz | [ColorXYZ](./fast-colors.colorxyz.md) | the xyz color to convert |

<b>Returns:</b>

[ColorLAB](./fast-colors.colorlab.md)
