{
  "x402Version": 2,
  "id": 28939,
  "slug": "28939",
  "resource": "https://api.webbersites.com/api/a11y/contrast",
  "description": "WCAG contrast ratio between two colors — the check the URL-based a11y endpoint can't do. Give a foreground and background color (hex or rgb()); returns the exact ratio and AA/AAA pass/fail for normal text, large text, and UI components, with a plain-English verdict. ?fg=&bg=",
  "type": "http",
  "serviceName": "WebberSites x402 Data API",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1783321551/bazaar-icons/9924842eb1a94ebd.png",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xdd5fcEa81CA6f1EB39FEd5B973DE794293B81ba6",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "contrast_ratio": {
            "type": "number"
          },
          "passes": {
            "type": "object"
          },
          "summary": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "bg": "#ffffff",
            "fg": "#767676"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "background": "#ffffff",
            "contrast_ratio": 4.54,
            "foreground": "#767676",
            "passes": {
              "large_text": {
                "AA": true,
                "AAA": true
              },
              "normal_text": {
                "AA": true,
                "AAA": false
              }
            },
            "ratio_string": "4.54:1",
            "summary": "Good — passes AA for normal text and AAA for large text."
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "bg": {
                    "description": "Background color — hex or rgb()",
                    "type": "string"
                  },
                  "fg": {
                    "description": "Foreground/text color — hex (#111 or #111111) or rgb()",
                    "type": "string"
                  }
                },
                "required": [
                  "fg",
                  "bg"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "contrast_ratio": {
                    "type": "number"
                  },
                  "passes": {
                    "type": "object"
                  },
                  "summary": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "Accessibility",
    "bazaar"
  ],
  "sourceHost": "api.webbersites.com",
  "lastUpdated": "2026-10-09T01:53:45.662Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-09T01:53:45.484Z"
  },
  "metadata": {
    "serviceName": "WebberSites x402 Data API",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1783321551/bazaar-icons/9924842eb1a94ebd.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "bg": "#ffffff",
              "fg": "#767676"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "background": "#ffffff",
              "contrast_ratio": 4.54,
              "foreground": "#767676",
              "passes": {
                "large_text": {
                  "AA": true,
                  "AAA": true
                },
                "normal_text": {
                  "AA": true,
                  "AAA": false
                }
              },
              "ratio_string": "4.54:1",
              "summary": "Good — passes AA for normal text and AAA for large text."
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "bg": {
                      "description": "Background color — hex or rgb()",
                      "type": "string"
                    },
                    "fg": {
                      "description": "Foreground/text color — hex (#111 or #111111) or rgb()",
                      "type": "string"
                    }
                  },
                  "required": [
                    "fg",
                    "bg"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "contrast_ratio": {
                      "type": "number"
                    },
                    "passes": {
                      "type": "object"
                    },
                    "summary": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.webbersites.com",
    "manifest_name": "api.webbersites.com",
    "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": {
    "background": "#ffffff",
    "contrast_ratio": 4.54,
    "foreground": "#767676",
    "passes": {
      "large_text": {
        "AA": true,
        "AAA": true
      },
      "normal_text": {
        "AA": true,
        "AAA": false
      }
    },
    "ratio_string": "4.54:1",
    "summary": "Good — passes AA for normal text and AAA for large text."
  }
}