API & MCP

Everything a person can do on Layer Blend Color Mixer, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Layer Blend Color Mixer

Mix a source HEX color over a backdrop using normal, multiply, screen, overlay, darken, lighten, difference or exclusion. Calculate the final sRGB color at a chosen layer opacity.

Inputs of Layer Blend Color Mixer
FieldTypeDefaultDescription
backdroptext"#c8d6bd"Backdrop HEX
sourcetext"#426a60"Source HEX
opacitynumber60Source opacity (%)
modeselect (normal, multiply, screen, overlay, darken, lighten, difference, exclusion)"multiply"Blend mode

Example request

A gentle green multiply tint

curl -X POST https://luminablendmixer.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"backdrop":"#c8d6bd","source":"#426a60","opacity":60,"mode":"multiply"}'

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-blend-mixer": { "type": "http", "url": "https://luminablendmixer.usefulweb.site/mcp" }
  }
}