{"uid":"cap_AjCU8_94IZJDPfSQaY66a","slug":"api-x402node-dev-b9899460","name":"Hex to HSL Color Converter","description":"Hex to HSL converter, hue saturation lightness, HSL color picker, hex to hsl, RGB to HSL, color space conversion, CSS hsl(), color theory. Convert hex color into HSL (Hue, Saturation, Lightness) and return both RGB intermediate and CSS hsl() string. Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/color/hex-to-hsl","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["hex"],"properties":{"hex":{"type":"string","description":"Hex color e.g. #3366cc (required)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0022","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0022/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-Um70BEmha5r780N-nArO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0022","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a hex color code to HSL (Hue, Saturation, Lightness) values, returning the RGB intermediate representation and a CSS hsl() string.","exampleAgentPrompt":"What's the HSL value of the hex color #3a86ff? I need both the CSS hsl() string and the intermediate RGB values.","exampleUseCases":null,"resultDescription":"Returns the hue (0-360), saturation (0-100%), and lightness (0-100%) values derived from the input hex color, along with the intermediate RGB components and a ready-to-use CSS hsl() string.","failureModes":["Invalid hex code format returns an error","Missing or malformed input body returns a 400-level error","Hex code with unsupported characters or wrong length fails validation"],"whenToPreferThis":"Use this endpoint when you need to convert a hex color code to HSL format, especially when generating CSS stylesheets, performing color theory analysis, or needing the CSS hsl() string directly. Prefer this over manual computation when you want both the numeric HSL components and the formatted CSS value in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:59:47.528Z","isFirstParty":false}