Text to Color API

GET

Convert written color descriptions directly into color codes.

Text to Color converts natural language color names into hexadecimal color codes. Send descriptive color phrases to receive matching hex values and channel counts, with paid plans adding RGB, HSL, and CMYK formats.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/texttocolor?color=turquoise
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "color": "turquoise",
    "hex": "#66c8b8",
    "rgb": "102, 200, 184",
    "hsl": "170, 47, 59",
    "cmyk": "49, 0, 8, 22",
    "ansi16": 96,
    "channels": {
      "rgbChannels": 3,
      "cmykChannels": 4,
      "ansiChannels": 1,
      "hexChannels": 1,
      "hslChannels": 3
    }
  }
}

About the Text to Color API

Text to Color works by analyzing the text provided and converting it to a color code. It uses advanced algorithms to convert the text to a color code and returns the color code.

What people use it for

E-Commerce Product Tagging
Online retailers map user-submitted garment color descriptions directly to standardized hex codes for accurate catalog search filters.
Generative Prompt Styling
When users specify scene themes using casual phrases like ocean blue, design tools resolve the exact hex codes for canvas backgrounds.
Chatbot UI Customization
Transform conversational customer preferences into hex values on the fly to preview customized dashboard themes in client settings.
Form Input Normalization
Validate freeform color inputs from creative survey responses by converting spoken or written hues into unambiguous hexadecimal codes.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Text to Color

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Text to Color API.

Read the docs
How many color conversions does the Free plan cover?
The Free plan covers 100 conversions per month, using 2 credits per request. If you need higher volume, the Starter plan supports up to 100,000 conversions each month, which works out to about $0.30 per 1,000 calls.
Do I get RGB, HSL, and CMYK values on the Free plan?
No, RGB, HSL, CMYK, and ANSI 16 values are premium fields available only on paid plans. The Free plan provides the matched color name, hexadecimal code, and color channel counts.
What formats are returned for each converted color?
Text to Color returns the resolved color name, hexadecimal code, and channel counts across five color models. Paid plans also return full comma-separated values for RGB, HSL, CMYK, and ANSI 16 formats.
What kind of text can I pass to the conversion parameter?
You can supply natural language text describing a color into the color parameter. The service analyzes the input phrase and maps it to the closest corresponding color definition.
Will my response include RGB and CMYK values if I stay on the Free tier?
No, the Free plan restricts access to those specific fields. If your application relies on RGB, HSL, CMYK, or ANSI 16 strings, you will need a Starter plan or higher to populate them.

Ready to build with Text to Color? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs