# Color Palette Generator from Base Hex Color

> Color Palette Generator from Base Hex Color is a paid API for AI agents from color-design.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-31).

Generates a color palette (complementary, analogous, triadic, tetradic, split-complementary, or monochromatic) from a given base hex color.

## Facts

- Endpoint: GET https://color-design.x402tookit.com/palette-generate?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/color-palette-generator-from-base-hex-color-7d46d4a6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TTyDHC8tn5nLJirdgmB6q

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability color-palette-generator-from-base-hex-color-7d46d4a6
```

Example prompt: Generate a triadic color palette from my base color #3A86FF so I can build a harmonious UI color scheme.

## When to prefer this

Use this endpoint when you need a theoretically grounded color palette derived from a single base hex color using standard color harmony rules. Prefer it over manual color picking or generic design tools when you need programmatic, reproducible palette generation with named roles for each color and clear HSL data. Ideal for design automation, theme generation, and brand kit tooling.

## Known failure modes

- Invalid or malformed hex color string causes an error response
- Unsupported scheme name returns an error or defaults to triadic
- Missing required 'base' query parameter returns a validation error
- Network timeout or service unavailability returns a 5xx error

## How this service works

Generate a color palette from a base hex color: complementary, analogous, triadic, tetradic, split-complementary or monochrome.

## Output

Returns an array of hex colors with their assigned roles (e.g. primary, accent, complement), the scheme type used, the base color's HSL breakdown, a summary description of the palette, and metadata like source and timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "base"
     ],
     "properties": {
      "base": {
       "type": "string",
       "description": "Base hex color"
      },
      "scheme": {
       "type": "string",
       "description": "complementary, analogous, triadic, tetradic, split-complementary or monochrome (default triadic)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "base": {
       "type": [
        "null",
        "string"
       ]
      },
      "colors": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "hex": {
          "type": [
           "null",
           "string"
          ]
         },
         "role": {
          "type": [
           "null",
           "string"
          ]
         }
        }
       }
      },
      "scheme": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "baseHsl": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "h": {
         "type": [
          "null",
          "number"
         ]
        },
        "l": {
         "type": [
          "null",
          "number"
         ]
        },
        "s": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/color-palette-generator-from-base-hex-color-7d46d4a6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from color-design.x402tookit.com](https://www.zero.xyz/host/color-design.x402tookit.com/llms.txt)
