{"openapi":"3.1.0","info":{"title":"HueKit API","version":"1.0.0","description":"Color conversion between HEX, RGB, HSL, HSV, CMYK and OKLCH, with nearest CSS named color and closest Pantone-style match. Computed locally. Free single-color GET; paid batch POST via x402."},"servers":[{"url":"https://color.wrapper-agency.com"}],"paths":{"/api/v1/color":{"get":{"summary":"Convert a single color to all formats","parameters":[{"name":"value","in":"query","required":true,"schema":{"type":"string","example":"#1A73E8"},"description":"HEX, rgb(), hsl(), or a CSS color name (url-encoded)"}],"responses":{"200":{"description":"All formats + nearest named color + closest Pantone-style match","content":{"application/json":{"example":{"input":"#1A73E8","hex":"#1a73e8","rgb":{"r":26,"g":115,"b":232},"hsl":{"h":217,"s":82,"l":50.6},"hsv":{"h":217,"s":88.8,"v":91},"cmyk":{"c":88.8,"m":50.4,"y":0,"k":9},"oklch":{"l":0.5944,"c":0.1817,"h":257.5},"nearestNamedColor":{"name":"dodgerblue","hex":"#1e90ff","distance":24.4},"closestPantone":{"code":"PANTONE 2995 C","name":"Sky Blue","hex":"#00a3e0"},"readableTextColor":"#ffffff","source":"Computed locally (sRGB, HSL, HSV, CMYK, OKLCH)."}}}}}}},"/api/v1/pro/color":{"post":{"summary":"Batch convert colors (paid, $0.001/call via x402, USDC on Base)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"colors":{"type":"array","items":{"type":"string"},"example":["#1A73E8","rgb(255,0,0)","teal"]}},"required":["colors"]}}}},"responses":{"200":{"description":"Array of conversions, one per input color"},"402":{"description":"Payment required (x402)"}}}}}}