{
  "x402Version": 2,
  "id": 36977,
  "slug": "36977",
  "resource": "https://api.vextorium.com/v1/color-contrast",
  "description": "Convert a color between HEX, RGB, HSL, HSV and CMYK and, given a background, compute the WCAG 2.x contrast ratio with AA/AAA pass flags; without background, suggests black or white text.",
  "type": "http",
  "serviceName": "Vextorium",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "HcjfmZLgWRZzwj4deEiS7pewc4KBYSw39mW5nTyt3pz2",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:10",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
      "amount": "3000",
      "maxTimeoutSeconds": 604900
    },
    {
      "scheme": "exact",
      "network": "eip155:5042",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x3600000000000000000000000000000000000000",
      "amount": "3000",
      "maxTimeoutSeconds": 604900
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "color": {
            "properties": {
              "cmyk": {
                "items": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "type": [
                  "array",
                  "null"
                ]
              },
              "hex": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "hsl": {
                "items": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "type": [
                  "array",
                  "null"
                ]
              },
              "hsv": {
                "items": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "type": [
                  "array",
                  "null"
                ]
              },
              "luminance": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "rgb": {
                "items": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "type": [
                  "array",
                  "null"
                ]
              }
            },
            "type": [
              "object",
              "null"
            ]
          },
          "contrast": {
            "properties": {
              "grande_text_AA": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "grande_text_AAA": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "normal_text_AA": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "normal_text_AAA": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "ratio": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "ui_components": {
                "type": [
                  "boolean",
                  "null"
                ]
              }
            },
            "type": [
              "object",
              "null"
            ]
          },
          "fund": {
            "properties": {
              "cmyk": {
                "items": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "type": [
                  "array",
                  "null"
                ]
              },
              "hex": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "hsl": {
                "items": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "type": [
                  "array",
                  "null"
                ]
              },
              "hsv": {
                "items": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "type": [
                  "array",
                  "null"
                ]
              },
              "luminance": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "rgb": {
                "items": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "type": [
                  "array",
                  "null"
                ]
              }
            },
            "type": [
              "object",
              "null"
            ]
          }
        },
        "type": [
          "object",
          "null"
        ]
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "color": "#00ff66",
            "fund": "#0d0e11"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "color": {
              "cmyk": [
                100,
                0
              ],
              "hex": "#00ff66",
              "hsl": [
                144,
                100
              ],
              "hsv": [
                144,
                100
              ],
              "luminance": 0.7248,
              "rgb": [
                0,
                255
              ]
            },
            "contrast": {
              "grande_text_AA": true,
              "grande_text_AAA": true,
              "normal_text_AA": true,
              "normal_text_AAA": true,
              "ratio": 14.24,
              "ui_components": true
            },
            "fund": {
              "cmyk": [
                24,
                18
              ],
              "hex": "#0d0e11",
              "hsl": [
                225,
                13
              ],
              "hsv": [
                225,
                24
              ],
              "luminance": 0.0044,
              "rgb": [
                13,
                14
              ]
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "color": {
                    "description": "#RRGGBB, #RGB, rgb() or hsl()",
                    "type": "string"
                  },
                  "fund": {
                    "description": "Background color (optional)",
                    "type": "string"
                  }
                },
                "required": [
                  "color"
                ]
              },
              "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": {
                  "color": {
                    "properties": {
                      "cmyk": {
                        "items": {
                          "type": [
                            "null",
                            "number"
                          ]
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "hex": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "hsl": {
                        "items": {
                          "type": [
                            "null",
                            "number"
                          ]
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "hsv": {
                        "items": {
                          "type": [
                            "null",
                            "number"
                          ]
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "luminance": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "rgb": {
                        "items": {
                          "type": [
                            "null",
                            "number"
                          ]
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      }
                    },
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "contrast": {
                    "properties": {
                      "grande_text_AA": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "grande_text_AAA": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "normal_text_AA": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "normal_text_AAA": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "ratio": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "ui_components": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      }
                    },
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "fund": {
                    "properties": {
                      "cmyk": {
                        "items": {
                          "type": [
                            "null",
                            "number"
                          ]
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "hex": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "hsl": {
                        "items": {
                          "type": [
                            "null",
                            "number"
                          ]
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "hsv": {
                        "items": {
                          "type": [
                            "null",
                            "number"
                          ]
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "luminance": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "rgb": {
                        "items": {
                          "type": [
                            "null",
                            "number"
                          ]
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      }
                    },
                    "type": [
                      "object",
                      "null"
                    ]
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "color",
    "accessibility",
    "wcag",
    "design",
    "contrast",
    "bazaar"
  ],
  "sourceHost": "api.vextorium.com",
  "lastUpdated": "2026-10-08T06:12:13.963Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:12:13.714Z"
  },
  "metadata": {
    "serviceName": "Vextorium",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "color": "#00ff66",
              "fund": "#0d0e11"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "color": {
                "cmyk": [
                  100,
                  0
                ],
                "hex": "#00ff66",
                "hsl": [
                  144,
                  100
                ],
                "hsv": [
                  144,
                  100
                ],
                "luminance": 0.7248,
                "rgb": [
                  0,
                  255
                ]
              },
              "contrast": {
                "grande_text_AA": true,
                "grande_text_AAA": true,
                "normal_text_AA": true,
                "normal_text_AAA": true,
                "ratio": 14.24,
                "ui_components": true
              },
              "fund": {
                "cmyk": [
                  24,
                  18
                ],
                "hex": "#0d0e11",
                "hsl": [
                  225,
                  13
                ],
                "hsv": [
                  225,
                  24
                ],
                "luminance": 0.0044,
                "rgb": [
                  13,
                  14
                ]
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "color": {
                      "description": "#RRGGBB, #RGB, rgb() or hsl()",
                      "type": "string"
                    },
                    "fund": {
                      "description": "Background color (optional)",
                      "type": "string"
                    }
                  },
                  "required": [
                    "color"
                  ]
                },
                "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": {
                    "color": {
                      "properties": {
                        "cmyk": {
                          "items": {
                            "type": [
                              "null",
                              "number"
                            ]
                          },
                          "type": [
                            "array",
                            "null"
                          ]
                        },
                        "hex": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "hsl": {
                          "items": {
                            "type": [
                              "null",
                              "number"
                            ]
                          },
                          "type": [
                            "array",
                            "null"
                          ]
                        },
                        "hsv": {
                          "items": {
                            "type": [
                              "null",
                              "number"
                            ]
                          },
                          "type": [
                            "array",
                            "null"
                          ]
                        },
                        "luminance": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "rgb": {
                          "items": {
                            "type": [
                              "null",
                              "number"
                            ]
                          },
                          "type": [
                            "array",
                            "null"
                          ]
                        }
                      },
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "contrast": {
                      "properties": {
                        "grande_text_AA": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        },
                        "grande_text_AAA": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        },
                        "normal_text_AA": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        },
                        "normal_text_AAA": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        },
                        "ratio": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "ui_components": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        }
                      },
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "fund": {
                      "properties": {
                        "cmyk": {
                          "items": {
                            "type": [
                              "null",
                              "number"
                            ]
                          },
                          "type": [
                            "array",
                            "null"
                          ]
                        },
                        "hex": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "hsl": {
                          "items": {
                            "type": [
                              "null",
                              "number"
                            ]
                          },
                          "type": [
                            "array",
                            "null"
                          ]
                        },
                        "hsv": {
                          "items": {
                            "type": [
                              "null",
                              "number"
                            ]
                          },
                          "type": [
                            "array",
                            "null"
                          ]
                        },
                        "luminance": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "rgb": {
                          "items": {
                            "type": [
                              "null",
                              "number"
                            ]
                          },
                          "type": [
                            "array",
                            "null"
                          ]
                        }
                      },
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.vextorium.com",
    "manifest_name": "api.vextorium.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": {
    "example": {
      "color": {
        "cmyk": [
          "value"
        ],
        "hex": "string",
        "hsl": [
          "value"
        ],
        "hsv": [
          "value"
        ],
        "luminance": 0,
        "rgb": [
          "value"
        ]
      },
      "contrast": {
        "grande_text_AA": true,
        "grande_text_AAA": true,
        "normal_text_AA": true,
        "normal_text_AAA": true,
        "ratio": 0,
        "ui_components": true
      },
      "fund": {
        "cmyk": [
          "value"
        ],
        "hex": "string",
        "hsl": [
          "value"
        ],
        "hsv": [
          "value"
        ],
        "luminance": 0,
        "rgb": [
          "value"
        ]
      }
    },
    "type": "string"
  }
}