{
  "x402Version": 2,
  "id": 35804,
  "slug": "35804",
  "resource": "https://tanod.dev/v1/color/contrast",
  "description": "Check WCAG color contrast: ratio and AA / AAA pass or fail for normal text, large text and UI components (utilpeek, Tanod). Use when an agent must check whether text and background colors meet WCAG AA or AAA contrast.",
  "type": "http",
  "serviceName": "Tanod utilpeek",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791364949/bazaar-icons/d8143c9bc952f5cd.png",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "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
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "RMk9k3VC8dr4hhjgFh88rGhjAbzfBzHxJJ5n2fTcqus",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "background": {
            "type": "string"
          },
          "composited": {
            "type": "boolean"
          },
          "foreground": {
            "type": "string"
          },
          "large_text": {
            "properties": {
              "aa": {
                "type": "boolean"
              },
              "aaa": {
                "type": "boolean"
              }
            },
            "type": "object"
          },
          "normal_text": {
            "properties": {
              "aa": {
                "type": "boolean"
              },
              "aaa": {
                "type": "boolean"
              }
            },
            "type": "object"
          },
          "note": {
            "type": "string"
          },
          "ratio": {
            "type": "number"
          },
          "ratio_text": {
            "type": "string"
          },
          "ratio_unrounded": {
            "type": "number"
          },
          "ui_components": {
            "properties": {
              "aa": {
                "type": "boolean"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "ratio",
          "normal_text",
          "large_text",
          "ui_components"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "background": "white",
            "foreground": "#777"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "background": "#ffffffff",
            "composited": false,
            "foreground": "#777777ff",
            "large_text": {
              "aa": true,
              "aaa": false
            },
            "normal_text": {
              "aa": false,
              "aaa": 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,
            "ui_components": {
              "aa": true
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "background": {
                    "description": "The background color it sits on, in the same CSS color formats.",
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "foreground": {
                    "description": "The text or UI color, a CSS color: hex (#rgb, #rrggbb, #rrggbbaa), rgb() / rgba(), hsl() / hsla() or a CSS color name.",
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "foreground",
                  "background"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "background": {
                    "type": "string"
                  },
                  "composited": {
                    "type": "boolean"
                  },
                  "foreground": {
                    "type": "string"
                  },
                  "large_text": {
                    "properties": {
                      "aa": {
                        "type": "boolean"
                      },
                      "aaa": {
                        "type": "boolean"
                      }
                    },
                    "type": "object"
                  },
                  "normal_text": {
                    "properties": {
                      "aa": {
                        "type": "boolean"
                      },
                      "aaa": {
                        "type": "boolean"
                      }
                    },
                    "type": "object"
                  },
                  "note": {
                    "type": "string"
                  },
                  "ratio": {
                    "type": "number"
                  },
                  "ratio_text": {
                    "type": "string"
                  },
                  "ratio_unrounded": {
                    "type": "number"
                  },
                  "ui_components": {
                    "properties": {
                      "aa": {
                        "type": "boolean"
                      }
                    },
                    "type": "object"
                  }
                },
                "required": [
                  "ratio",
                  "normal_text",
                  "large_text",
                  "ui_components"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_h7pxv14u"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "maxItems": 11,
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    "utilpeek",
    "color",
    "contrast",
    "fx-rates",
    "qr-code",
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "tanod.dev",
  "lastUpdated": "2026-10-12T03:25:08.188Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T03:25:07.786Z"
  },
  "metadata": {
    "serviceName": "Tanod utilpeek",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791364949/bazaar-icons/d8143c9bc952f5cd.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "background": "white",
              "foreground": "#777"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "background": "#ffffffff",
              "composited": false,
              "foreground": "#777777ff",
              "large_text": {
                "aa": true,
                "aaa": false
              },
              "normal_text": {
                "aa": false,
                "aaa": 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,
              "ui_components": {
                "aa": true
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "background": {
                      "description": "The background color it sits on, in the same CSS color formats.",
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "foreground": {
                      "description": "The text or UI color, a CSS color: hex (#rgb, #rrggbb, #rrggbbaa), rgb() / rgba(), hsl() / hsla() or a CSS color name.",
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "foreground",
                    "background"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "background": {
                      "type": "string"
                    },
                    "composited": {
                      "type": "boolean"
                    },
                    "foreground": {
                      "type": "string"
                    },
                    "large_text": {
                      "properties": {
                        "aa": {
                          "type": "boolean"
                        },
                        "aaa": {
                          "type": "boolean"
                        }
                      },
                      "type": "object"
                    },
                    "normal_text": {
                      "properties": {
                        "aa": {
                          "type": "boolean"
                        },
                        "aaa": {
                          "type": "boolean"
                        }
                      },
                      "type": "object"
                    },
                    "note": {
                      "type": "string"
                    },
                    "ratio": {
                      "type": "number"
                    },
                    "ratio_text": {
                      "type": "string"
                    },
                    "ratio_unrounded": {
                      "type": "number"
                    },
                    "ui_components": {
                      "properties": {
                        "aa": {
                          "type": "boolean"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "required": [
                    "ratio",
                    "normal_text",
                    "large_text",
                    "ui_components"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "a": "bc_h7pxv14u"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "description": "App builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "description": "Service builder codes",
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "maxItems": 11,
              "type": "array"
            },
            "w": {
              "description": "Wallet builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "tanod.dev",
    "manifest_name": "tanod.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "background": "string",
      "composited": true,
      "foreground": "string",
      "large_text": {
        "aa": true,
        "aaa": true
      },
      "normal_text": {
        "aa": true,
        "aaa": true
      },
      "note": "string",
      "ratio": 0,
      "ratio_text": "string",
      "ratio_unrounded": 0,
      "ui_components": {
        "aa": true
      }
    },
    "type": "string"
  }
}