{
  "format": "delx/intent-card/v1",
  "id": "rgb-to-hex-api",
  "intent": "RGB To Hex for an agent workflow",
  "title": "RGB To Hex API for agents",
  "description": "Convert RGB channels to #rrggbb. Call when you bridge agent RGB pickers to CSS hex. Returns hex and channels for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.",
  "keywords": [
    "RGB To Hex API",
    "RGB To Hex for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-07",
  "canonical_url": "https://commerce.delx.ai/intents/rgb-to-hex-api",
  "machine_url": "https://commerce.delx.ai/intents/rgb-to-hex-api.json",
  "recommendation": {
    "tool_name": "util_rgb_to_hex",
    "service_name": "Delx RGB To Hex",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/rgb-to-hex",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "r": {
          "description": "Input field: r.",
          "type": "integer"
        },
        "g": {
          "description": "Input field: g.",
          "type": "integer"
        },
        "b": {
          "description": "Input field: b.",
          "type": "integer"
        }
      },
      "required": [
        "r",
        "g",
        "b"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "r": 255,
      "g": 0,
      "b": 0
    },
    "example_output": {
      "schema": "delx/util-rgb-to-hex/v1",
      "hex": "#ff0000",
      "r": 255,
      "g": 0,
      "b": 0
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/rgb-to-hex -m POST -H 'x-delx-source: intent-card-rgb-to-hex-api' --max-amount 0.001 -b '{\"r\":255,\"g\":0,\"b\":0}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-rgb-to-hex-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/rgb-to-hex"
  }
}
