---
id: fast-colors.colorlch.fromobject
title: ColorLCH.fromObject() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-colors](./fast-colors.md) &gt; [ColorLCH](./fast-colors.colorlch.md) &gt; [fromObject](./fast-colors.colorlch.fromobject.md)

## ColorLCH.fromObject() method

Construct a [ColorLCH](./fast-colors.colorlch.md) from a config object.

<b>Signature:</b>

```typescript
static fromObject(data: {
        l: number;
        c: number;
        h: number;
    }): ColorLCH | null;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  data | { l: number; c: number; h: number; } | the config object |

<b>Returns:</b>

[ColorLCH](./fast-colors.colorlch.md) \| null
