---
title: "Generate a color swatch for any color"
method: GET
path: "/v1/swatch/"
---

# Generate a color swatch for any color

`GET /v1/swatch/`

Generates an SVG swatch representation of a color. The swatch can include 
the color name if provided. The SVG is designed to be visually appealing 
and readable across different backgrounds.

## Query parameters

- `color` string, required
- `name` string

## Response `200`

OK

## Other responses

- `400` — BAD REQUEST

---

[API](https://skmtc.dev/color/apis/color-name-api.md) · [All operations](https://skmtc.dev/color/apis/color-name-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/color/color-name-api/revisions/98f9f0ba5658/schema)
