---
title: "Colour palette swatch PNG"
method: GET
path: "/palette/swatch.png"
tags: ["Palette"]
---

# Colour palette swatch PNG

`GET /palette/swatch.png`

## Request

- Base URL: `https://api.colourmemory.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.colourmemory.com/palette/swatch.png`
- Auth: none declared

## Query parameters

- `hexes` string, required: Comma-separated hex values e.g. #d4a829,#1a5c6e,#0a0a0b
- `weights` string, nullable: Comma-separated proportional weights from k-means extraction. Used only when layout=photo.
- `layout` string: photo | equal | grid | gradient | filmstrip | 6310 | 7020 | 5030 | 8010 | 5050 | 6040 | triptych | quad | 55-25-20 | quint | 70-10-20 | 40-30-20-10 | 33-33-24-10
- `w` integer
- `h` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/colourmemory/apis/colour-memory-api.md) · [All operations](https://skmtc.dev/colourmemory/apis/colour-memory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/colourmemory/apis/colour-memory-api/revisions/4ba028f64042?raw)
