{"uid":"cap_9OtwR01X6jBSgDPqN-t3W","slug":"dt0ur-online-color-converter-wcag-contrast-checker-0fb92c03","name":"dt0ur.online Color Converter & WCAG Contrast Checker","description":"Converts a color between HEX, RGB, and HSL, and optionally computes the WCAG contrast ratio against a second color.","url":"https://dt0ur.online/api/utility/color-convert?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"color":{"type":"string","description":"Hex (#rrggbb), rgb(r,g,b), or hsl(h,s%,l%) color"},"against":{"type":"string","description":"Optional second color to compute WCAG contrast ratio against"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LU-X5lLQIv0rSxcWMKhYa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a color between HEX, RGB, and HSL formats and optionally computes the WCAG contrast ratio against a second color.","exampleAgentPrompt":"Convert the color #3a86ff to RGB and HSL, and check its WCAG contrast ratio against #ffffff so I know if it's accessible as text on a white background.","exampleUseCases":[{"title":"Accessibility check for brand colors","prompt":"I'm using #1a1a2e as my text color on a #f0f0f0 background — can you tell me the WCAG contrast ratio and whether it passes accessibility standards?"},{"title":"CSS color format conversion","prompt":"Convert rgb(255, 87, 51) to both hex and HSL so I can use it consistently across my CSS stylesheets."},{"title":"Design token audit","prompt":"Take the color hsl(210, 100%, 56%) and give me its hex and RGB equivalents, and also check the contrast ratio against pure black (#000000)."}],"resultDescription":"Returns the input color expressed in all three formats (HEX, RGB, and HSL). If a second color is provided via the 'against' parameter, also returns the WCAG contrast ratio (a numeric value from 1 to 21) between the two colors, enabling accessibility compliance checks.","failureModes":["Invalid color string format returns an error (e.g. malformed hex or out-of-range RGB values)","Missing required 'color' field returns a 400-level error","WCAG contrast ratio not computed if 'against' field is absent","Network timeouts or service unavailability return 5xx errors","Payment failure via x402 protocol results in 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need programmatic color format conversion across HEX, RGB, and HSL in a single call, especially when you also need WCAG contrast ratio computation for accessibility compliance. It is ideal for design automation pipelines, UI component auditing, and accessibility validation tasks where you need both format conversion and contrast checking without calling separate services.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:34:37.342Z","isFirstParty":false,"canonicalSlug":"dt0ur-online-color-converter-wcag-contrast-checker-0fb92c03"}