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

[@microsoft/fast-colors](./fast-colors.md) &gt; [parseColorHexARGB](./fast-colors.parsecolorhexargb.md)

## parseColorHexARGB() function

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

<b>Signature:</b>

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

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  raw | string | a color string in the form of "\#AARRGGBB" or "\#ARGB" |

<b>Returns:</b>

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

## Example


```ts
parseColorHexRGBA("#AAFF0000");
parseColorHexRGBA("#AF00");

```
