---
id: fast-components.swatchrgb
title: SwatchRGB variable
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-components](./fast-components.md) &gt; [SwatchRGB](./fast-components.swatchrgb.md)

## SwatchRGB variable


<b>Signature:</b>

```typescript
SwatchRGB: Readonly<{
    create(r: number, g: number, b: number): SwatchRGB;
    from(obj: {
        r: number;
        g: number;
        b: number;
    }): SwatchRGB;
}>
```