API & MCP

Everything a person can do on Delta E Color Difference (CIEDE2000), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Delta E Color Difference (CIEDE2000)

Compare a reference color with up to 50 samples written as HEX, CSS names or any CSS color function, including lab(). Each row shows ΔE2000, ΔE94, ΔE76 and the OKLab distance, plus pass or fail against your tolerance, with a CSV report.

Inputs of Delta E Color Difference (CIEDE2000)
FieldTypeDefaultDescription
referencetext"#164E63"Reference color (CSS color)
samplestextarea"#1A5A6F\n#164E64\nlab(30 -12 -20)"Sample colors (one per line)
methodselect (2000, 94, 76, ok)"2000"Tolerance method
tolerancenumber2Pass tolerance (ΔE)

Example request

Three samples against a teal reference

curl -X POST https://luminacolordifference.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"reference":"#164E63","samples":"#1A5A6F\n#164E64\nlab(30 -12 -20)","method":"2000","tolerance":2}'

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-difference": { "type": "http", "url": "https://luminacolordifference.usefulweb.app/mcp" }
  }
}