utilpeek (Tanod) color conversion (hex, RGB, HSL, HSV, CMYK, OKLCH) and WCAG 2.x contra…
utilpeek (Tanod) color conversion (hex, RGB, HSL, HSV, CMYK, OKLCH) and WCAG 2.x contrast check (AA / AAA).
by tanod.dev · discovered, not yet claimed by its owner · updated 2026-10-09
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
utilpeek (Tanod) color conversion (hex, RGB, HSL, HSV, CMYK, OKLCH) and WCAG 2.x contrast check (AA / AAA).
Tags: utilpeek · fx-rates · qr-code · geocoding · holidays · bazaar · builder-code
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-09
{
"background": "white",
"color": "#777"
}{
"background": {
"alpha": 1,
"cmyk": {
"c": 0,
"k": 0,
"m": 0,
"note": "naive RGB to CMYK formula (no ICC profile, no ink limits): not a print proof",
"y": 0
},
"hex": "#ffffff",
"hex8": "#ffffffff",
"hsl": {
"css": "hsl(0 0% 100%)",
"h": 0,
"l": 100,
"s": 0
},
"hsv": {
"h": 0,
"s": 0,
"v": 100
},
"names": [
"white"
],
"oklch": {
"c": 0,
"css": "oklch(100% 0 none)",
"h": null,
"l": 1
},
"relative_luminance": 1,
"rgb": {
"b": 255,
"css": "rgb(255 255 255)",
"g": 255,
"r": 255
}
},
"color": {
"alpha": 1,
"cmyk": {
"c": 0,
"k": 53.33,
"m": 0,
"note": "naive RGB to CMYK formula (no ICC profile, no ink limits): not a print proof",
"y": 0
},
"hex": "#777777",
"hex8": "#777777ff",
"hsl": {
"css": "hsl(0 0% 46.67%)",
"h": 0,
"l": 46.67,
"s": 0
},
"hsv": {
"h": 0,
"s": 0,
"v": 46.67
},
"names": [],
"oklch": {
"c": 0,
"css": "oklch(56.93% 0 none)",
"h": null,
"l": 0.5693
},
"relative_luminance": 0.184475,
"rgb": {
"b": 119,
"css": "rgb(119 119 119)",
"g": 119,
"r": 119
}
},
"contrast": {
"aa_large_text": true,
"aa_normal_text": false,
"aa_ui_components": true,
"aaa_large_text": false,
"aaa_normal_text": false,
"composited": false,
"note": "WCAG 2.x contrast; pass/fail compares the unrounded ratio. Large text: at least 18 pt (24 px), or 14 pt (about 18.7 px) bold. Thresholds: AA 4.5 normal / 3 large, AAA 7 / 4.5, UI components and graphics 3 (SC 1.4.11).",
"ratio": 4.48,
"ratio_text": "4.48:1",
"ratio_unrounded": 4.478089
}
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/35893.jsonfor the price and payment options. - Pay. Call
GET https://tanod.dev/v1/color/convert. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Polygon, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.001 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Polygon
- Demand
- 2 calls · 2 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.001 | 0x593857A4a4F619543ea12394137C3004ce841720 | 300s |
| exact | Polygon eip155:137 | USDC | $0.001 | 0x593857A4a4F619543ea12394137C3004ce841720 | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"amountUsd": 0.001,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "1000",
"amountUsd": 0.001,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"background": {
"properties": {
"alpha": {
"type": "number"
},
"cmyk": {
"properties": {
"c": {
"type": "number"
},
"k": {
"type": "number"
},
"m": {
"type": "number"
},
"note": {
"type": "string"
},
"y": {
"type": "number"
}
},
"type": "object"
},
"hex": {
"type": "string"
},
"hex8": {
"type": "string"
},
"hsl": {
"properties": {
"css": {
"type": "string"
},
"h": {
"type": "number"
},
"l": {
"type": "number"
},
"s": {
"type": "number"
}
},
"type": "object"
},
"hsv": {
"properties": {
"h": {
"type": "number"
},
"s": {
"type": "number"
},
"v": {
"type": "number"
}
},
"type": "object"
},
"names": {
"items": {
"type": "string"
},
"type": "array"
},
"oklch": {
"properties": {
"c": {
"type": "number"
},
"css": {
"type": "string"
},
"h": {
"type": [
"number",
"null"
]
},
"l": {
"type": "number"
}
},
"type": "object"
},
"relative_luminance": {
"type": "number"
},
"rgb": {
"properties": {
"b": {
"type": "integer"
},
"css": {
"type": "string"
},
"g": {
"type": "integer"
},
"r": {
"type": "integer"
}
},
"type": "object"
}
},
"type": "object"
},
"color": {
"properties": {
"alpha": {
"type": "number"
},
"cmyk": {
"properties": {
"c": {
"type": "number"
},
"k": {
"type": "number"
},
"m": {
"type": "number"
},
"note": {
"type": "string"
},
"y": {
"type": "number"
}
},
"type": "object"
},
"hex": {
"type": "string"
},
"hex8": {
"type": "string"
},
"hsl": {
"properties": {
"css": {
"type": "string"
},
"h": {
"type": "number"
},
"l": {
"type": "number"
},
"s": {
"type": "number"
}
},
"type": "object"
},
"hsv": {
"properties": {
"h": {
"type": "number"
},
"s": {
"type": "number"
},
"v": {
"type": "number"
}
},
"type": "object"
},
"names": {
"items": {
"type": "string"
},
"type": "array"
},
"oklch": {
"properties": {
"c": {
"type": "number"
},
"css": {
"type": "string"
},
"h": {
"type": [
"number",
"null"
]
},
"l": {
"type": "number"
}
},
"type": "object"
},
"relative_luminance": {
"type": "number"
},
"rgb": {
"properties": {
"b": {
"type": "integer"
},
"css": {
"type": "string"
},
"g": {
"type": "integer"
},
"r": {
"type": "integer"
}
},
"type": "object"
}
},
"type": "object"
},
"contrast": {
"properties": {
"aa_large_text": {
"type": "boolean"
},
"aa_normal_text": {
"type": "boolean"
},
"aa_ui_components": {
"type": "boolean"
},
"aaa_large_text": {
"type": "boolean"
},
"aaa_normal_text": {
"type": "boolean"
},
"composited": {
"type": "boolean"
},
"note": {
"type": "string"
},
"ratio": {
"type": "number"
},
"ratio_text": {
"type": "string"
},
"ratio_unrounded": {
"type": "number"
}
},
"type": "object"
}
},
"required": [
"color"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"background": {
"alpha": 0,
"cmyk": {
"c": 0,
"k": 0,
"m": 0,
"note": "string",
"y": 0
},
"hex": "string",
"hex8": "string",
"hsl": {
"css": "string",
"h": 0,
"l": 0,
"s": 0
},
"hsv": {
"h": 0,
"s": 0,
"v": 0
},
"names": [
"string"
],
"oklch": {
"c": 0,
"css": "string",
"h": 0,
"l": 0
},
"relative_luminance": 0,
"rgb": {
"b": 0,
"css": "string",
"g": 0,
"r": 0
}
},
"color": {
"alpha": 0,
"cmyk": {
"c": 0,
"k": 0,
"m": 0,
"note": "string",
"y": 0
},
"hex": "string",
"hex8": "string",
"hsl": {
"css": "string",
"h": 0,
"l": 0,
"s": 0
},
"hsv": {
"h": 0,
"s": 0,
"v": 0
},
"names": [
"string"
],
"oklch": {
"c": 0,
"css": "string",
"h": 0,
"l": 0
},
"relative_luminance": 0,
"rgb": {
"b": 0,
"css": "string",
"g": 0,
"r": 0
}
},
"contrast": {
"aa_large_text": true,
"aa_normal_text": true,
"aa_ui_components": true,
"aaa_large_text": true,
"aaa_normal_text": true,
"composited": true,
"note": "string",
"ratio": 0,
"ratio_text": "string",
"ratio_unrounded": 0
}
},
"type": "string"
}Examples
curl "https://tanod.dev/v1/color/convert"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://tanod.dev/v1/color/convert");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
res = httpx.get("https://tanod.dev/v1/color/convert")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- tanod.dev
- Endpoint
- https://tanod.dev/v1/color/convert
- Machine-readable
/resources/35893.json