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

[@microsoft/fast-colors](./fast-colors.md) &gt; [labToXYZ](./fast-colors.labtoxyz.md)

## labToXYZ() function

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

<b>Signature:</b>

```typescript
export declare function labToXYZ(lab: ColorLAB): ColorXYZ;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  lab | [ColorLAB](./fast-colors.colorlab.md) | the lab color to convert |

<b>Returns:</b>

[ColorXYZ](./fast-colors.colorxyz.md)
