# agent402.tools Color Palette Generator

> agent402.tools Color Palette Generator is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Generates a coordinated color palette from a base color using a named color-theory scheme (complementary, analogous, triadic, tetradic, split-complementary, or monochromatic), returning each color in hex and RGB.

## Facts

- Endpoint: POST https://agent402.tools/api/color-palette
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-color-palette-generator-78c203b6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DgqZ-t3HH4XyhFTgNghhY

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 agent402-tools-color-palette-generator-78c203b6 -d '<json body>'
```

Example prompt: Generate a triadic color palette based on the color #E63946 — give me all the resulting hex and RGB values.

## When to prefer this

Use this endpoint when you need algorithmically correct color-theory-based palettes from a single base color, especially when you need a specific named scheme (complementary, triadic, etc.) rather than a subjective or AI-generated palette. Ideal for design tools, UI theming, brand palette generation, and any workflow requiring mathematically harmonious color sets.

## Known failure modes

- Invalid or unparseable base color string — returns error indicating bad color input
- Unknown or misspelled scheme name — returns error listing valid scheme options
- Missing required fields (color or scheme) — returns validation error
- Malformed request body — returns 400-level error

## How this service works

Generate a coordinated palette from a base color using a named color-theory scheme: complementary (2 colors), analogous (3), triadic (3), tetradic (4), split-complementary (3), or monochromatic (5 lightness variants). Returns each color in hex, rg...

## Output

Returns a set of colors derived from the base color according to the chosen scheme: 2 colors for complementary, 3 for analogous/triadic/split-complementary, 4 for tetradic, and 5 lightness variants for monochromatic. Each color is returned in hex and RGB format.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "color": {
   "type": "string",
   "description": "Base color (any notation parseColor accepts)."
  },
  "scheme": {
   "type": "string",
   "description": "One of: complementary, analogous, triadic, tetradic, split-complementary, monochromatic."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "#1d4ed8",
  "colors": [
   {
    "hex": "#1d4ed8",
    "hsl": {
     "h": 224.04,
     "l": 48.04,
     "s": 76.42
    }
   },
   {
    "hex": "#d81d4e",
    "hsl": {
     "h": 344.04,
     "l": 48.04,
     "s": 76.42
    }
   },
   {
    "hex": "#4ed81d",
    "hsl": {
     "h": 104.04,
     "l": 48.04,
     "s": 76.42
    }
   }
  ],
  "scheme": "triadic"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-color-palette-generator-78c203b6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
