<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@csstools/css-color-parser](./css-color-parser.md) &gt; [serializeHSL](./css-color-parser.serializehsl.md)

## serializeHSL() function

**Signature:**

```typescript
export declare function serializeHSL(color: ColorData, gamutMapping?: boolean): FunctionNode;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

color


</td><td>

[ColorData](./css-color-parser.colordata.md)


</td><td>


</td></tr>
<tr><td>

gamutMapping


</td><td>

boolean


</td><td>

_(Optional)_


</td></tr>
</tbody></table>

**Returns:**

FunctionNode

