generate_scheme
Pack: colorapi · Endpoint: https://gateway.pipeworx.io/colorapi/mcp
Generate harmonious color palettes from a seed hex color (e.g., “#3498DB”). Returns complementary, analogous, triadic, or monochromatic schemes with hex codes.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
hex | string | yes | Seed hex color value without the # prefix (e.g. “FF5733”). |
mode | string | no | Color scheme mode. One of: monochrome, analogic, complement, triad, quad. Defaults to “monochrome”. |
count | number | no | Number of colors to return (1-10, default 5). |
Example call
Arguments
{
"hex": "3498DB"
}
curl
curl -X POST https://gateway.pipeworx.io/colorapi/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"generate_scheme","arguments":{"hex":"3498DB"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('generate_scheme', {
"hex": "3498DB"
});
More examples
{
"hex": "E74C3C",
"mode": "triad",
"count": 4
}
Response shape
Always returns: seed_hex, mode, count, colors
| Field | Type | Description |
|---|---|---|
seed_hex | string | Seed hex color with # prefix |
mode | string | Color scheme mode used |
count | number | Number of colors in scheme |
colors | array | Array of formatted color objects |
Full JSON Schema
{
"type": "object",
"properties": {
"seed_hex": {
"type": "string",
"description": "Seed hex color with # prefix"
},
"mode": {
"type": "string",
"description": "Color scheme mode used"
},
"count": {
"type": "number",
"description": "Number of colors in scheme"
},
"colors": {
"type": "array",
"description": "Array of formatted color objects",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Common color name"
},
"exact_name_match": {
"type": "boolean",
"description": "Whether the name is an exact match"
},
"closest_named_hex": {
"type": "string",
"description": "Hex code of closest named color"
},
"hex": {
"type": "string",
"description": "Hex color value"
},
"rgb": {
"type": "string",
"description": "RGB color format string"
},
"hsl": {
"type": "string",
"description": "HSL color format string"
},
"hsv": {
"type": "string",
"description": "HSV color format string"
},
"cmyk": {
"type": "string",
"description": "CMYK color format string"
},
"contrast": {
"type": "string",
"description": "WCAG contrast ratio value"
}
},
"required": [
"name",
"exact_name_match",
"closest_named_hex",
"hex",
"rgb",
"hsl",
"hsv",
"cmyk",
"contrast"
]
}
}
},
"required": [
"seed_hex",
"mode",
"count",
"colors"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"colorapi": {
"url": "https://gateway.pipeworx.io/colorapi/mcp"
}
}
}
See Getting Started for client-specific install steps.