Adobe Illustrator · JSON Structure

Adobe Illustrator Scripting Color Structure

Color from Adobe Illustrator API

Type: object Properties: 11
Creative CloudDesignIllustratorVector Graphics

Color is a JSON Structure definition published by Adobe Illustrator, describing 11 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

colorType red green blue cyan magenta yellow black gray spotName tint

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adobe-illustrator/refs/heads/main/json-structure/adobe-illustrator-scripting-color-structure.json",
  "name": "Color",
  "description": "Color from Adobe Illustrator API",
  "type": "object",
  "properties": {
    "colorType": {
      "type": "string",
      "description": "Type of color specification.",
      "enum": [
        "RGB",
        "CMYK",
        "Gray",
        "Spot",
        "Pattern",
        "Gradient",
        "None"
      ],
      "example": "RGB"
    },
    "red": {
      "type": "double",
      "description": "Red component (0-255) for RGB colors.",
      "minimum": 0,
      "maximum": 255,
      "example": 72.0
    },
    "green": {
      "type": "double",
      "description": "Green component (0-255) for RGB colors.",
      "minimum": 0,
      "maximum": 255,
      "example": 72.0
    },
    "blue": {
      "type": "double",
      "description": "Blue component (0-255) for RGB colors.",
      "minimum": 0,
      "maximum": 255,
      "example": 72.0
    },
    "cyan": {
      "type": "double",
      "description": "Cyan component (0-100) for CMYK colors.",
      "minimum": 0,
      "maximum": 100,
      "example": 72.0
    },
    "magenta": {
      "type": "double",
      "description": "Magenta component (0-100) for CMYK colors.",
      "minimum": 0,
      "maximum": 100,
      "example": 72.0
    },
    "yellow": {
      "type": "double",
      "description": "Yellow component (0-100) for CMYK colors.",
      "minimum": 0,
      "maximum": 100,
      "example": 72.0
    },
    "black": {
      "type": "double",
      "description": "Black component (0-100) for CMYK colors.",
      "minimum": 0,
      "maximum": 100,
      "example": 72.0
    },
    "gray": {
      "type": "double",
      "description": "Gray value (0-100) for grayscale colors.",
      "minimum": 0,
      "maximum": 100,
      "example": 72.0
    },
    "spotName": {
      "type": "string",
      "description": "Spot color name for spot colors.",
      "example": "Example Artboard"
    },
    "tint": {
      "type": "double",
      "description": "Tint percentage for spot colors.",
      "minimum": 0,
      "maximum": 100,
      "example": 72.0
    }
  }
}