---
id: fast-colors.colorlab.toobject
title: ColorLAB.toObject() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-colors](./fast-colors.md) &gt; [ColorLAB](./fast-colors.colorlab.md) &gt; [toObject](./fast-colors.colorlab.toobject.md)

## ColorLAB.toObject() method

Returns the [ColorLAB](./fast-colors.colorlab.md) formatted as an object.

<b>Signature:</b>

```typescript
toObject(): {
        l: number;
        a: number;
        b: number;
    };
```
<b>Returns:</b>

{ l: number; a: number; b: number; }
