---
title: "Palette Light Dark"
method: POST
path: "/palette/light-dark"
---

# Palette Light Dark

`POST /palette/light-dark`

## 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/light-dark`
- Auth: none declared

Generate light-mode and dark-mode role maps from a palette.
Analyses LRV of each colour, assigns roles, identifies safe text pairs
for each mode, and flags missing neutrals.

## Request body

- PaletteLightDarkRequest
  - `palette` string[], required
  - `use_case` string

## 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)
