Compare colors
colors_compareCompare a reference color against candidate colors using CIEDE2000, CIE94, CIE76, Oklab, or all metrics to find the closest match and full ranking for palette matching or same-color checks.
Instructions
Measure how different colors look from a reference: CIEDE2000 (ΔE00, default), CIE94, CIE76 or Oklab distance, or all of them at once. Returns the nearest candidate and a full ranking, closest first. Use for 'which color is closest', 'are these the same color', or matching to a palette. Under 1 is not noticeable; over 10 is very different.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"color": "<color>",
"candidates": "<candidates>"
},
"name": "colors_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | The reference color. Any CSS color: "#3b82f6", "rgb(59 130 246)", "oklch(0.62 0.19 260)", "tomato". | |
| metric | No | "ciede2000" (default, ΔE00), "cie94" (graphic-arts weights, reference chroma), "cie76" (Euclidean in CIELAB), "oklab" (Euclidean in Oklab) or "all" (every metric; ranked by ΔE00). Lab is D65, no adaptation. | ciede2000 |
| candidates | Yes | Colors to compare against the reference. A list, even for a single color. Any CSS color strings. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | Yes | ||
| nearest | Yes | ||
| ranking | Yes |