x402

Convert a color between hex, rgb and hsl (JSON body)

Convert a color between HEX, RGB and HSL, with WCAG contrast against white and black. No account or API key. Without PAYMENT-SIGNATURE the response is HTTP 402 with an x402 v2 payment challenge; pay and resend the identical request. Input as query string (GET) or JSON body (POST), max 64 KB; the payment is bound to the exact input. Price: 0.002 USDC per call.

post/api/util/color

Request

  • Base URL: https://yruz.one
  • URL: https://yruz.one/api/util/color
  • Auth: none required

Headers

PAYMENT-SIGNATUREstring

x402 v2 PaymentPayload (base64 JSON). Omit to receive the 402 payment challenge.

Request body

colorstring

#hex, rgb(r,g,b) or hsl(h,s%,l%) (required)

Response

Tool result

toolstring
resultobject

Changes

No recorded changes to this operation across all 1 revision of this API.