---
title: "color.gamutCheck: Gamut Warning — Vector kit command — Kition"
description: "Answers the colours of the selection (or document) that can't print in the working CMYK, with how far out and how often used."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/color.gamutCheck"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/vector/commands/color.gamutCheck](https://developer.kition.ai/docs/kits/vector/commands/color.gamutCheck)

# color.gamutCheck

**Gamut Warning.** Answers the colours of the selection (or document) that can't print in the working CMYK, with how far out and how often used.

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: no
- Acts on: `ids` (a list of ids), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `colors` | `string[]` | no |  |
| `id` | `integer` | no | object ID |
| `ids` | `integer[]` | no | object IDs |

## Call through vector_run

```text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "color.gamutCheck" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `colors`, `id`, `ids`. vector_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `checked` | `number` | no |  |
| `outOfGamut` | `object[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "checked": {
      "type": "number"
    },
    "outOfGamut": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "count": {
            "type": "number"
          },
          "deltaE": {
            "type": "number"
          },
          "hex": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "colors": {
      "items": {
        "description": "a colour such as #rrggbb",
        "type": "string"
      },
      "type": "array"
    },
    "id": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "ids": {
      "description": "object IDs",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    }
  },
  "returns": "{checked, outOfGamut: [{hex, deltaE, count}]}",
  "type": "object"
}
```

Generated from the command list of @kition/vector-darwin-arm64@0.1.0 and the kit itself (vector_commands through @kition/cli@0.1.1, built from KitionAI/kition-vector@7cf908f).
