Catalog/design-cmyk-convert

Design

RGB <-> CMYK API

Converts between sRGB/hex and CMYK (cyan/magenta/yellow/key) percentages for print, both directions, plus a CSS-style cmyk() string. Answers 'What is the CMYK breakdown for printing?', 'Convert these CMYK percentages to RGB.'

Price$0.02per request
MethodPOST
Route/v1/design/cmyk-convert
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
colorcmykprintconvertprocess-colorcolorspacedesignprepress
API URLhttps://x402.hexl.dev/v1/design/cmyk-convert
Integration docs
Example request
{
  "color": "#ff6347"
}
Example response
{
  "direction": "rgb->cmyk",
  "input": "#ff6347",
  "hex": "#ff6347",
  "rgb": {
    "r": 255,
    "g": 99,
    "b": 71
  },
  "hsl": {
    "h": 9.13,
    "s": 100,
    "l": 63.92
  },
  "cmyk": {
    "c": 0,
    "m": 61.18,
    "y": 72.16,
    "k": 0
  },
  "css": "cmyk(0%, 61.18%, 72.16%, 0%)"
}
Input schema
{
  "type": "object",
  "properties": {
    "color": {
      "type": "string",
      "examples": [
        "#ff6347"
      ]
    },
    "cmyk": {
      "type": "object",
      "properties": {
        "c": {
          "type": "number"
        },
        "m": {
          "type": "number"
        },
        "y": {
          "type": "number"
        },
        "k": {
          "type": "number"
        }
      }
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}