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

[@microsoft/fast-colors](./fast-colors.md) &gt; [parseColor](./fast-colors.parsecolor.md)

## parseColor() function

Expects any of the following and attempts to determine which is being used \#RRGGBB, \#AARRGGBB, rgb(RR,GG,BB) rgba(RR,GG,BB,a), or any of the [CSS color names](https://www.w3schools.com/colors/colors_names.asp)<!-- -->.

<b>Signature:</b>

```typescript
export declare function parseColor(raw: string): ColorRGBA64 | null;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  raw | string | the color string to parse |

<b>Returns:</b>

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