API & MCP

Everything a person can do on Photo Palette & Text Contrast, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Photo Palette & Text Contrast

Analyze up to 64 six-digit hex colors for relative luminance and contrast against black and white. Use the results to choose watermark or caption colors for opaque backgrounds.

Inputs of Photo Palette & Text Contrast
FieldTypeDefaultDescription
colorstextarea"#164e63 #c5d6a5 #f4e6cf"Hex colors (comma or space separated)

Example request

Alpine color palette

curl -X POST https://luminacoloranalyzer.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"colors":"#164e63 #c5d6a5 #f4e6cf"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "lumina-color-analyzer": { "type": "http", "url": "https://luminacoloranalyzer.usefulweb.site/mcp" }
  }
}