Skip to content
HALOWERK

Image Processing

raster reference palette drift

Raster palette drift: return color distance to the closest supplied palette entry and the unmatched pixel share. Use it when an agent needs to verify conformance to a brand palette.

POST https://bild.halowerk.com/v1/raster-reference-palette-drift

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
imagestringYes
palettearrayYes
toleranceintegerNo
Show full input schema
{
  "type": "object",
  "properties": {
    "image": {
      "type": "string",
      "maxLength": 34000
    },
    "palette": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^#[0-9a-fA-F]{6}$"
      },
      "maxItems": 8,
      "minItems": 1
    },
    "tolerance": {
      "type": "integer",
      "minimum": 0,
      "maximum": 441
    }
  },
  "required": [
    "image",
    "palette"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "image": "iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAKUlEQVR4nGNgIAXIRa3+LxS6IgGvAgxFMEFsGK8CrFah6MTlBpJ8BQIACd4s1Aujus8AAAAASUVORK5CYII=",
  "palette": [
    "#1e5aab",
    "#e6781e",
    "#f0f5f9"
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-19 UTC.

More endpoints in this hub

All endpoints in this hub →