# x402-tools Color Palette Generator

> x402-tools Color Palette Generator is a paid API for AI agents from x402.nichospt.net, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Generates color-theory-based palettes (complementary, analogous, triadic, etc.) from a base hex color or seed string, returned as hex/HSL/RGB values.

## Facts

- Endpoint: POST https://x402.nichospt.net/color-palette?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-tools-color-palette-generator-90962a0d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lcciDT6H1m2lh8QINirOi

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 x402-tools-color-palette-generator-90962a0d -d '<json body>'
```

Example prompt: Generate a triadic color palette of 6 colors based on the hex color #3B82F6 for my brand Morning Bloom — I need each color in hex, RGB, and HSL.

## When to prefer this

Use this endpoint when you need programmatically generated, color-theory-correct palettes from a known base color or a deterministic seed string, especially for branding, UI theming, or design systems. Prefer over manual color picking when consistency and harmony modes (analogous, triadic, complementary, etc.) are required. The seed feature is ideal when you want the same palette every time for a given brand or identifier.

## Known failure modes

- Invalid hex color format returns validation error
- Mode not in allowed enum values returns 400
- Count outside 2–10 range returns validation error
- Both base and seed omitted may return default or error
- Payment failure via x402 returns 402 Payment Required

## How this service works

Pay-per-call utility APIs for AI agents, settled in USDC via the x402 protocol.

## Output

A JSON object containing the base color, mode, seed, count, and an array of color objects each with hex, HSL (hue, saturation, lightness), and RGB (red, green, blue) values.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base": {
   "type": "string",
   "pattern": "^#?([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
   "description": "Base hex color, e.g. '#3B82F6'. Drives color-theory harmony."
  },
  "mode": {
   "enum": [
    "complementary",
    "analogous",
    "triadic",
    "tetradic",
    "split-complementary",
    "monochromatic"
   ],
   "type": "string",
   "default": "analogous"
  },
  "seed": {
   "type": "string",
   "maxLength": 200,
   "description": "Any string (brand name, id). Hashed into a deterministic base color — same seed always yields the same palette."
  },
  "count": {
   "type": "integer",
   "default": 5,
   "maximum": 10,
   "minimum": 2
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "#3B82F6",
  "mode": "analogous",
  "seed": null,
  "count": 5,
  "colors": [
   {
    "hex": "#3B82F6",
    "hsl": {
     "h": 217,
     "l": 60,
     "s": 91
    },
    "rgb": {
     "b": 246,
     "g": 130,
     "r": 59
    }
   },
   {
    "hex": "#3BC4F6",
    "hsl": {
     "h": 197,
     "l": 60,
     "s": 91
    },
    "rgb": {
     "b": 246,
     "g": 196,
     "r": 59
    }
   },
   {
    "hex": "#3B43F6",
    "hsl": {
     "h": 237,
     "l": 60,
     "s": 91
    },
    "rgb": {
     "b": 246,
     "g": 67,
     "r": 59
    }
   }
  ]
 }
}
```

## More

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