Convert Hex Color to CMYK
Convert one or more hex color codes to their CMYK equivalents. Enter multiple hex codes separated by spaces or newlines.
Results
Instructions
- Enter one or more hex color codes, separated by spaces or newlines.
- Example:
#FF5733 #00FF00 3366FF
- Click Convert to see the CMYK values, one per line.
- Example output:
0, 0.66, 0.8, 0
for #FF5733 - You can use or omit the # prefix (e.g. #FF5733 or FF5733).
- Invalid or non-hex values will be skipped.
Frequently Asked Questions (FAQs)
Can I enter multiple hex codes at once?
Yes, you can enter several values separated by spaces or newlines, e.g. `#FF5733
Do I need to use the
No, both #FF5733
and FF5733
are accepted as input.
What happens if I enter an invalid value?
Invalid or non-hexadecimal color codes are ignored and not shown in the results.
What is the format of the CMYK output?
Each result is shown as C, M, Y, K
with values between 0 and 1, rounded to two decimals.
API Usage
This tool also provides an API for programmatic access.
Endpoint:
POST /tools/hex-to-cmyk/api/
Request Body:
json
{ "hex": "#FF5733 #00FF00" }
Response:
The response will be a list of CMYK values, one for each valid hex code, in the same order as the input.
json
{
"cmyk": [
"0, 0.66, 0.8, 0",
"1, 0, 1, 0"
]
}