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

[@microsoft/fast-colors](./fast-colors.md) &gt; [parseColorNamed](./fast-colors.parsecolornamed.md)

## parseColorNamed() function

Converts a named color to a [ColorRGBA64](./fast-colors.colorrgba64.md)<!-- -->.

<b>Signature:</b>

```typescript
export declare function parseColorNamed(raw: keyof typeof namedColorsConfigs): ColorRGBA64 | null;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  raw | keyof typeof namedColorsConfigs | a [CSS color name](https://www.w3schools.com/colors/colors_names.asp)<!-- -->. |

<b>Returns:</b>

[ColorRGBA64](./fast-colors.colorrgba64.md) \| null

## Example


```ts
parseColorNamed("red");

```
