<!-- 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; [colorDataFitsRGB\_Gamut](./css-color-parser.colordatafitsrgb_gamut.md)

## colorDataFitsRGB\_Gamut() function

Check if a color data object fits the `sRGB` gamut.

**Signature:**

```typescript
export declare function colorDataFitsRGB_Gamut(x: ColorData): boolean;
```

## Parameters

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

Parameter


</th><th>

Type


</th><th>

Description


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

x


</td><td>

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


</td><td>

The color data to be checked.


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

**Returns:**

boolean

{<!-- -->boolean<!-- -->} Whether the color data fits the `sRGB` gamut.

