{
  "format": "delx/intent-card/v1",
  "id": "hex-color-luminance-api",
  "intent": "Hex Color Relative Luminance for an agent workflow",
  "title": "Hex Color Relative Luminance API for agents",
  "description": "Relative luminance of a #RRGGBB color. Call when contrast checks without image decode. Returns luminance as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.",
  "keywords": [
    "Hex Color Relative Luminance API",
    "Hex Color Relative Luminance for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-23",
  "canonical_url": "https://commerce.delx.ai/intents/hex-color-luminance-api",
  "machine_url": "https://commerce.delx.ai/intents/hex-color-luminance-api.json",
  "recommendation": {
    "tool_name": "util_hex_color_luminance",
    "service_name": "Hex Color Relative Luminance",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/hex-color-luminance",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "hex": {
          "type": "string",
          "description": "Hex color #RRGGBB"
        }
      },
      "required": [
        "hex"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "hex": "#112233"
    },
    "example_output": {
      "schema": "delx/util-hex-color-luminance/v1",
      "luminance": 0.015022419420735887
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/hex-color-luminance -m POST -H 'x-delx-source: intent-card-hex-color-luminance-api' --max-amount 0.001 -b '{\"hex\":\"#112233\"}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-hex-color-luminance-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/hex-color-luminance"
  }
}
