Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Colourmemory Com Harmonies API
version: 2.3.4
description: 'Operations tagged Harmonies across 2 of this provider''s published API definitions: colourmemory-com-openapi.json, colourmemory-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.colourmemory.com
description: Host serving this spec; also named as mcp_endpoint host in https://api.colourmemory.com/mcp discovery document (vendor PR Eye Ltd).
tags:
- name: Harmonies
paths:
/harmonies:
post:
summary: Get Harmonies
description: 'Archive-grounded colour harmonies in LCh perceptual colour space.
For each harmony type, rotates the input hue in LCh space, then finds
the nearest named archive colour to each harmony target using CIEDE2000.
Returns named archive colours as harmonic partners -- with provenance,
cultural context, and source -- not just hex codes.
"hay_contrast" is a different kind of harmony type from the rest: not a
fixed-angle rotation, but D.R. Hay''s (1838) documented contrast pairing
between six named hues, snapped from the input''s nearest hue rather than
rotated from it, and returning Field''s proportional power for the pair
(attributed to Field, not Hay, throughout) alongside the CIEDE2000
archive match. Declines to answer (covered: false) rather than guess for
a hue nearer a tertiary region than any of the six -- Hay''s data has no
specific number for those.
Example:
{"hex": "#1B1556"}
Returns complementary, analogous, triadic, and split-complementary
archive colours for Iago Venom (Shakespeare, Othello II.3.347).'
operationId: get_harmonies_harmonies_post
parameters:
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
- name: origin
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Origin
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/HarmonyRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Harmonies
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
HarmonyRequest:
properties:
hex:
type: string
title: Hex
types:
items:
type: string
type: array
title: Types
default:
- complementary
- analogous
- triadic
- split_complementary
n_per_harmony:
type: integer
title: N Per Harmony
default: 1
type: object
required:
- hex
title: HarmonyRequest
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
x-refined-from:
- colourmemory-com-openapi.json
- colourmemory-com-openapi.yml