{"uid":"cap_zM2uLmkXhrf6sBk25te4v","slug":"foundry-color-converter-6e1d5b04","name":"Foundry Color Converter","description":"Color converter: hex, RGB and HSL, luminance, contrast against white and black, best text color. Input: '#1e90ff'.","url":"https://minty-sprout.onrender.com/v1/color-convert?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":8000,"description":"#hex, rgb(r,g,b), hsl(h,s%,l%) or a basic name"}}},"responseSchema":{"type":"json","example":{"hex":"#1e90ff","hsl":"hsl(210, 100%, 56%)","rgb":"rgb(30, 144, 255)","luminance":0.2744,"best_text_color":"#000000","contrast_vs_black":6.49,"contrast_vs_white":3.24}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EOzUE21ZilPSUyhkmfgl-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a color (hex, RGB, HSL, or basic name) and returns all formats, luminance, contrast ratios against white and black, and the best readable text color overlay.","exampleAgentPrompt":"Convert the color #1e90ff and tell me its RGB and HSL values, its luminance, and whether black or white text would be more readable on top of it.","exampleUseCases":[{"title":"Accessibility contrast check for brand color","prompt":"I'm using #d4380d as my primary button background — what's the contrast ratio against white and black, and which text color should I use to meet accessibility standards?"},{"title":"Full color format conversion for CSS","prompt":"Can you convert hsl(210, 100%, 56%) into hex and RGB so I can use it in my stylesheet?"},{"title":"Choosing readable overlay text color","prompt":"I have a card with a background color of rgb(255, 200, 50) — what text color, black or white, will be most readable on top of it?"}],"resultDescription":"Returns a JSON object with the color expressed in hex, RGB, and HSL formats, its relative luminance (0–1), contrast ratio against black, contrast ratio against white, and the recommended best text color (#000000 or #ffffff) for legibility.","failureModes":["Invalid or unparseable color input returns an error (e.g. malformed hex, out-of-range RGB values)","Missing input field returns a validation error","Network timeout if the Render.com host is cold-starting","Unsupported color name not in the basic color name set may fail to parse"],"whenToPreferThis":"Choose this endpoint when you need to programmatically convert colors between formats (hex/RGB/HSL), compute WCAG luminance or contrast ratios for accessibility checks, or determine the best readable text color (black vs white) to overlay on a given background color. It handles all common CSS color input formats in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:57:43.893Z","isFirstParty":false,"canonicalSlug":"foundry-color-converter-6e1d5b04"}