---
title: "color.harmony: Color Guide — Vector kit command — Kition"
description: "Answers a colour harmony (complementary, triad, analogous, shades and more) built from a base colour, optionally snapped to a swatch library; changes nothing."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/color.harmony"
---

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

# color.harmony

**Color Guide.** Answers a colour harmony (complementary, triad, analogous, shades and more) built from a base colour, optionally snapped to a swatch library; changes nothing.

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `amount` | `integer` | no | 0 to 100; 50; how far the outermost steps go |
| `color` | `string` | no |  |
| `limitTo` | `string` | no |  |
| `rule` | `"complementary" \| "complementary2" \| "splitComplementary" \| "leftComplement" \| "rightComplement" \| "analogous" \| "analogous2" \| "monochromatic" \| "shades" \| "triad" \| "triad2" \| "triad3" \| "tetrad" \| "tetrad2" \| "tetrad3" \| "compound" \| "compound2" \| "highContrast" \| "highContrast2" \| "highContrast3" \| "pentagram"` | no | or its label |
| `steps` | `integer` | no | 1 to 20; 4 |
| `variation` | `"tintsShades" \| "warmCool" \| "vividMuted"` | no |  |

## Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `amount`, `color`, `limitTo`, `rule`, `steps`, `variation`. vector_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `colors` | `any[]` | no |  |
| `grid` | `any[]` | no |  |
| `rule` | `any` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "colors": {
      "type": "array"
    },
    "grid": {
      "type": "array"
    },
    "rule": {}
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "amount": {
      "description": "0 to 100; 50; how far the outermost steps go",
      "type": "integer"
    },
    "color": {
      "type": "string"
    },
    "limitTo": {
      "type": "string"
    },
    "rule": {
      "description": "or its label",
      "enum": [
        "complementary",
        "complementary2",
        "splitComplementary",
        "leftComplement",
        "rightComplement",
        "analogous",
        "analogous2",
        "monochromatic",
        "shades",
        "triad",
        "triad2",
        "triad3",
        "tetrad",
        "tetrad2",
        "tetrad3",
        "compound",
        "compound2",
        "highContrast",
        "highContrast2",
        "highContrast3",
        "pentagram"
      ],
      "type": "string"
    },
    "steps": {
      "description": "1 to 20; 4",
      "type": "integer"
    },
    "variation": {
      "enum": [
        "tintsShades",
        "warmCool",
        "vividMuted"
      ],
      "type": "string"
    }
  },
  "returns": "{rule, colors: [\"#rrggbb\", the base first], grid: [per colour, 2·steps+1 variations from shades/cool/muted to tints/warm/vivid with the colour itself in the centre]}",
  "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).
