---
id: fast-components.swatch.tocolorstring
title: Swatch.toColorString() method
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) &gt; [toColorString](./fast-components.swatch.tocolorstring.md)

## Swatch.toColorString() method

<b>Signature:</b>

```typescript
toColorString(): string;
```
<b>Returns:</b>

string
