---
title: "Compare Colours Endpoint"
method: POST
path: "/compare-colours"
---

# Compare Colours Endpoint

`POST /compare-colours`

## 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/compare-colours`
- Auth: none declared

Deep perceptual and cultural comparison between two hex values.

## Request body

- CompareRequest
  - `hex_a` string
  - `hex_b` string
  - `hex` string, nullable
  - `name` string, nullable
  - `query` string, nullable
  - `n_per_archive` 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)
