{"uid":"cap_bFre2nR6bHCgvoost1-Np","slug":"avent-tech-color-converter-1638b283","name":"Avent Tech Color Converter","description":"Color conversion: hex or rgb() input to hex, RGB, HSL, approximate relative luminance and best text contrast (black/white).","url":"https://api.aventtech.com/convert/color","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":["color"],"properties":{"color":{"type":"string","description":"Hex (#RGB/#RRGGBB) or rgb(r,g,b)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6fU4wjhPXf7enqkUcC0DW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a hex or rgb() color value into hex, RGB, HSL, approximate relative luminance, and best text contrast color (black or white).","exampleAgentPrompt":"Convert the color #3A7BD5 and tell me its RGB, HSL, relative luminance, and whether I should use black or white text on top of it.","exampleUseCases":[{"title":"Accessibility contrast check for UI","prompt":"I'm designing a button with background color #E74C3C — can you tell me if black or white text will be more readable on it, and give me the luminance value?"},{"title":"Design token format conversion","prompt":"I need the HSL and RGB equivalents of rgb(34, 139, 34) for my design system — can you convert it and also give me the hex code?"},{"title":"Dynamic theme text color selection","prompt":"My app lets users pick a custom background color. Given the hex #1A1A2E, what text color — black or white — gives better contrast, and what's the luminance?"}],"resultDescription":"Returns the input color expressed in hex, RGB components, HSL (hue/saturation/lightness), an approximate WCAG relative luminance value, and a recommended text contrast color (either black or white) for optimal readability.","failureModes":["Missing or malformed 'color' query parameter returns an error","Unsupported color format (e.g. named colors like 'red' or HSL input) may not be accepted","Out-of-range RGB values (e.g. rgb(300,0,0)) may return an error","Payment failure or insufficient USDC balance blocks the request"],"whenToPreferThis":"Use this endpoint when you need a quick, authoritative multi-format color conversion including accessibility-oriented outputs (relative luminance and black/white text contrast) in a single call, especially for UI/UX, design systems, or accessibility compliance workflows. Prefer it over manual computation or generic color libraries when you need a reliable API call without local dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:44:07.653Z","isFirstParty":false}