{"uid":"cap_1f7pLKegs5Da0RvzRtCym","slug":"lilambd-colors-nearest-hex-to-named-color-lookup-90cd513f","name":"lilambd Colors Nearest — Hex to Named Color Lookup","description":"A crossing for play, feeling, language, science and computation — creating states that do not have names yet.","url":"https://api.lilambd.com/colors/nearest?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["hex"],"properties":{"hex":{"type":"string","description":"Hex color without #"},"limit":{"type":"string","description":"How many (max 50)"}},"additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":[],"count":0,"attribution":"source licence line"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GBsmd5avlma4-C3Umi1_K","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Finds the nearest named color(s) to a given hex color code, returning matching color names with attribution.","exampleAgentPrompt":"What are the 5 closest named colors to the hex code 3a7bd5?","exampleUseCases":[{"title":"Brand color naming for design system","prompt":"I have a custom brand color with hex code F4A261 — what are the 3 closest standard named colors to it?"},{"title":"Accessibility label for UI color","prompt":"My UI uses the hex color 2D6A4F for a button — what is the nearest recognized color name I can use as a label?"},{"title":"Color palette annotation tool","prompt":"For each of these hex codes, tell me the single closest named color: 1B4F72, E74C3C, and F9E79F."}],"resultDescription":"Returns an array of named color objects closest to the input hex, with a count of results and an attribution string crediting the color name data source license.","failureModes":["Missing or malformed hex parameter returns an error","Invalid hex string (non-hex characters) may return no results or an error","Limit exceeding 50 is capped or rejected","Network or payment failure returns HTTP 402 if payment not completed"],"whenToPreferThis":"Use this endpoint when you need to map a raw hex color code to a human-readable, standard color name — especially in design, accessibility, or annotation workflows. Prefer this over building your own nearest-color logic when you want curated named colors with proper source attribution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:33:29.306Z","isFirstParty":false,"canonicalSlug":"lilambd-colors-nearest-hex-to-named-color-lookup-90cd513f"}