Converts CMYK color values to hex format for web development and design workflows. Access via MCP in Cursor or Windsurf for instant color conversion, or use the REST endpoint /v1/color/cmyk-to-hex. Input cyan, magenta, yellow, and key (black) percentages (0-100) and get precise hex codes like #FF5733. Essential for print-to-web design transitions.
curl "https://tinyfn.io/v1/color/cmyk-to-hex" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/color/cmyk-to-hex', {
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/cmyk-to-hex',
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"
}
}
}
}
Provide CMYK values as percentages (0-100) for cyan, magenta, yellow, and key (black). The tool returns the equivalent hex color code for web use.
CMYK is subtractive color for print (cyan, magenta, yellow, key/black percentages), while hex is additive RGB for screens using 6-digit codes like #FF0000.
The endpoint handles single conversions. For batch processing, make multiple API calls or use MCP tools in AI coding assistants for automated workflows.
CMYK covers a different color gamut than RGB/hex. Some print colors can't be perfectly reproduced on screens, leading to closest-match approximations.
All CMYK values should be percentages from 0 to 100. Values like C:75, M:0, Y:100, K:0 convert to their hex equivalents accurately.