{"uid":"cap_7zV3TYlBGy5qjL-2HIh1-","slug":"closest-css-colour-name-lookup-e49e023b","name":"Closest CSS Colour Name Lookup","description":"Find the closest CSS named colour to a hex value, with the distance score. Pure CPU, instant.","url":"https://api.gadgethumans.com/color-name-lookup?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","properties":{"queryParams":{"type":"object","required":["color"],"properties":{"color":{"type":"string","description":"Hex colour"}}}}},"output":{"type":"object","properties":{"example":{"ok":true}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"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_2OcOBj3FAu2lyEMkGbfm-","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":"Finds the closest CSS named colour to a given hex value and returns the name along with a distance score.","exampleAgentPrompt":"What's the closest CSS named colour to the hex value #3a7bd5, and how far off is it?","exampleUseCases":[{"title":"Design system colour labelling","prompt":"I have the hex colour #e63946 from our brand palette — what's the closest CSS named colour and how big is the gap?"},{"title":"Accessibility audit colour naming","prompt":"Can you tell me the closest standard CSS colour name to #4a90e2 so I can document it in our accessibility report?"},{"title":"Colour picker display label","prompt":"What CSS colour name is nearest to #2ecc71 and what's the distance score from it?"}],"resultDescription":"Returns a JSON object indicating success, the closest CSS named colour name, and a numerical distance score representing how far the input hex is from that named colour.","failureModes":["Missing or malformed 'color' query parameter — likely returns an error response","Invalid hex string (e.g. wrong length, non-hex characters) — may return an error or unexpected result","Network timeout, though unlikely given pure CPU processing"],"whenToPreferThis":"Use this endpoint when you need to map an arbitrary hex colour to a human-readable CSS named colour — ideal for design documentation, accessibility labelling, UI tooltips, or any workflow that needs a semantic colour name rather than a raw hex value. It is CPU-only and returns instantly, making it suitable for real-time applications.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:37:01.249Z","isFirstParty":false,"canonicalSlug":"closest-css-colour-name-lookup-e49e023b"}