# Color Mix (sRGB / Linear Light Blending)

> Color Mix (sRGB / Linear Light Blending) 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-29).

Blends two hex colors at a configurable ratio in sRGB or linear light color space, returning the resulting hex color.

## Facts

- Endpoint: GET https://color-design.x402tookit.com/color-mix?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/color-mix-srgb-linear-light-blending-619d1ea8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q56ACwHh-N6RD00ENcfOJ

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-mix-srgb-linear-light-blending-619d1ea8
```

Example prompt: Mix hex color #E63946 with #457B9D at a 70/30 ratio — 70% of the second color — using linear light blending, and tell me the resulting hex.

## When to prefer this

Choose this endpoint when you need a precise, single blended hex color from two inputs, especially when physical accuracy matters (linear light) or when you need a weighted mix rather than a simple average. Prefer the sibling gradient-steps endpoint if you need multiple interpolated colors across a range.

## Known failure modes

- Invalid hex color format for a or b (missing #, wrong length) — likely 400 error or null result
- weight_b outside 0–1 range — may return error or undefined behavior
- Unknown color space string — defaults to sRGB or returns error
- Missing required query parameters a or b — returns error
- Network timeout or service unavailability — no result returned

## How this service works

Mix two hex colors at a ratio in sRGB or in linear light (physically correct), returning the blended hex.

## Output

Returns a JSON object containing the blended hex color (result), the two input hex colors (a, b), the color space used (space), the blend weight of color B (weightOfB), and a summary string. May also include a source, asOf timestamp, and optional disclaimer or reasons fields.

## 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": [
      "a",
      "b"
     ],
     "properties": {
      "a": {
       "type": "string",
       "description": "First hex color"
      },
      "b": {
       "type": "string",
       "description": "Second hex color"
      },
      "space": {
       "type": "string",
       "description": "srgb (default) or linear"
      },
      "weight_b": {
       "type": "number",
       "description": "Share of b from 0 to 1, default 0.5"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "a": {
       "type": [
        "null",
        "string"
       ]
      },
      "b": {
       "type": [
        "null",
        "string"
       ]
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "space": {
       "type": [
        "null",
        "string"
       ]
      },
      "result": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "weightOfB": {
       "type": [
        "null",
        "number"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/color-mix-srgb-linear-light-blending-619d1ea8/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)
