Color API

liveTechnology

Identify, convert, and generate color schemes using thecolorapi.com

3tools
0msauth
free tier50 calls/day

Tools

identify_colorrequired: hex

Identify a color by hex code (e.g., "#FF5733"). Returns color name, RGB/HSL/HSV/CMYK values, and WCAG contrast ratios for accessibility.

Parameters
NameTypeDescription
hexreqstringHex color value without the # prefix (e.g. "FF5733").
▶Try it
generate_schemerequired: hex

Generate harmonious color palettes from a seed hex color (e.g., "#3498DB"). Returns complementary, analogous, triadic, or monochromatic schemes with hex codes.

Parameters
NameTypeDescription
hexreqstringSeed hex color value without the # prefix (e.g. "FF5733").
modeoptstringColor scheme mode. One of: monochrome, analogic, complement, triad, quad. Defaults to "monochrome".
countoptnumberNumber of colors to return (1-10, default 5).
▶Try it
convert_colorrequired: r, g, b

Convert between color formats: RGB to hex, HSL, HSV, CMYK. Returns the closest named color for the input values.

Parameters
NameTypeDescription
rreqnumberRed channel (0-255).
greqnumberGreen channel (0-255).
breqnumberBlue channel (0-255).
▶Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/colorapi/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/colorapi/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"identify_color","arguments":{"hex": "FF5733"}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("identify_color", {"hex":"example"});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("identify, convert, and generate color schemes using thecolorapi");