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

[@microsoft/fast-components](./fast-components.md) &gt; [Swatch](./fast-components.swatch.md)

## Swatch interface

Represents a color in a [Palette](./fast-components.palette.md)

<b>Signature:</b>

```typescript
export interface Swatch extends RelativeLuminance 
```

## Methods

|  Method | Description |
|  --- | --- |
|  [contrast(target)](./fast-components.swatch.contrast.md) |  |
|  [toColorString()](./fast-components.swatch.tocolorstring.md) |  |
