NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

Text to Color API

GET

Convert written color descriptions directly into color codes.

Text to Color converts color names and descriptive color text into hexadecimal color codes. CSS names, hex/rgb()/hsl() values and about 900 everyday color names such as burgundy, charcoal or navy blue resolve to their real color; other text is hashed to a stable color. Paid plans add 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.

Often used with

Color Converter API
Turn the generated hex into RGB channels, or CMYK and HSL on paid plans.

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 200 conversions per month, using 1 credit per request. If you need higher volume, the Starter plan supports up to 200,000 conversions each month, which works out to about $0.15 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?
CSS color names (spaces, hyphens and underscores ignored) and hex, rgb() and hsl() literals such as #ff0000 or rgb(255,0,0) resolve to their exact color. Everyday color names outside CSS, such as burgundy, charcoal, mint, navy blue, off white or rose gold, resolve from an open color-name list (the CC0 XKCD color survey plus common retail colors). Any other text is hashed to a stable color, so the same text always gives the same color. The matchType field tells you which happened: literal, keyword, named or generated.
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 404+ APIs.

Explore the catalog

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

Browse all APIs