# Color Adjust (Lighten, Darken, Saturate, Hue Rotate)

> Color Adjust (Lighten, Darken, Saturate, Hue Rotate) 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-30).

Adjusts a hex color by adding or subtracting HSL lightness, saturation, or hue rotation by exact numeric amounts.

## Facts

- Endpoint: GET https://color-design.x402tookit.com/color-adjust?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/color-adjust-lighten-darken-saturate-hue-rotate-e52cdf6f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-orZkQ0pKSPFYyRcg_nj_

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-adjust-lighten-darken-saturate-hue-rotate-e52cdf6f
```

Example prompt: Can you lighten #3a7bd5 by 20 lightness points and also rotate its hue by 30 degrees so I can use it as a hover state color?

## When to prefer this

Choose this endpoint when you need precise, deterministic HSL-based color adjustment by exact numeric amounts — lightening, darkening, saturating, desaturating, or hue-rotating a specific hex color. Prefer it over palette generation endpoints when you have a single source color and need a predictable, controlled transformation rather than a full palette or WCAG-constrained result.

## Known failure modes

- Invalid or malformed hex color returns an error with a reason
- Adjustment values outside allowed ranges (-100 to 100 for lightness/saturation, -360 to 360 for hue) may be rejected or clamped
- Missing required 'color' query parameter returns a validation error
- Result color clamped at HSL boundaries (0 or 100) if adjustment exceeds valid range

## How this service works

Lighten, darken, saturate, desaturate or rotate the hue of a hex color by an exact number of HSL points.

## Output

Returns the adjusted hex color string, the original hex color, the HSL breakdown of the input color, the exact changes applied (hue, lightness, saturation deltas), and a human-readable summary of what was done.

## 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": [
      "color"
     ],
     "properties": {
      "hue": {
       "type": "number",
       "description": "Rotate hue by degrees, -360 to 360"
      },
      "color": {
       "type": "string",
       "description": "Hex color"
      },
      "lightness": {
       "type": "number",
       "description": "Add to HSL lightness, -100 to 100"
      },
      "saturation": {
       "type": "number",
       "description": "Add to HSL saturation, -100 to 100"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "from": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "h": {
         "type": [
          "null",
          "number"
         ]
        },
        "l": {
         "type": [
          "null",
          "number"
         ]
        },
        "s": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "result": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "changes": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "hue": {
         "type": [
          "null",
          "number"
         ]
        },
        "lightness": {
         "type": [
          "null",
          "number"
         ]
        },
        "saturation": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
      
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/color-adjust-lighten-darken-saturate-hue-rotate-e52cdf6f/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)
