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

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

## ColorHSL.toObject() method

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

<b>Signature:</b>

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

{ h: number; s: number; l: number; }
