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

[@microsoft/fast-colors](./fast-colors.md) &gt; [parseColorWebRGB](./fast-colors.parsecolorwebrgb.md)

## parseColorWebRGB() function

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

<b>Signature:</b>

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

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  raw | string | a color string format "rgba(RR,GG,BB)" where RR,GG,BB are \[0,255\] |

<b>Returns:</b>

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

## Example


```ts
parseColorWebRGB("rgba(255, 0, 0");

```
