Converts hex color codes to CMYK values for print design workflows. Use via MCP in Cursor or Windsurf, or call GET /v1/color/hex-to-cmyk with a hex parameter. Input #FF5733 returns C:0%, M:66%, Y:80%, K:0%. Essential for preparing digital designs for commercial printing where CMYK color space is required.
curl "https://tinyfn.io/v1/color/hex-to-cmyk" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/color/hex-to-cmyk', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/color/hex-to-cmyk',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's color tools:
{
"mcpServers": {
"tinyfn-color": {
"url": "https://tinyfn.io/mcp/color",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Pass the hex color (with or without #) to the endpoint. Returns precise CMYK percentages ready for print specifications.
Returns CMYK as percentage values (0-100%) for cyan, magenta, yellow, and key (black) components, matching industry print standards.
Yes, AI agents can batch convert hex palettes to CMYK for print preparation, eliminating manual color space conversion in design tools.
Converts RGB hex values to CMYK using standard color space transformation algorithms, though slight variations may occur due to gamut differences.
Invalid hex codes return an error. Valid formats include #RRGGBB, #RGB, RRGGBB, and RGB (3 or 6 characters).