---
id: fast-colors.iscolornamed
title: isColorNamed() function
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-colors](./fast-colors.md) &gt; [isColorNamed](./fast-colors.iscolornamed.md)

## isColorNamed() function

Tests whether a color is in [NamedColors](./fast-colors.namedcolors.md)<!-- -->.

<b>Signature:</b>

```typescript
export declare function isColorNamed(raw: string | NamedColors): raw is NamedColors;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  raw | string \| [NamedColors](./fast-colors.namedcolors.md) | the color name to test |

<b>Returns:</b>

raw is [NamedColors](./fast-colors.namedcolors.md)
