Skip to content

All tools (41)

JSON 6
Time & Date 4
Encoding & Decoding 4
Generators 3
Text & Data 4
Logs & Debugging 1
Config & Infra 3
Security & Hashing 4
Color & Design 5
Numbers & Bits 3
Web & Markup 4

Nothing leaves the cave.

Nothing you paste ever leaves your device. There is no server to send it to.

How you can check →
DevToolsCave

    This tool runs entirely in your browser. Nothing you paste is uploaded.

    How you can check →

    HEX to CMYK converter

    Converts HEX to CMYK, entirely in your browser, with the same round-trip receipt the full color converter shows.

    CMYK output

    This is device-independent arithmetic (K = 1 − max(R,G,B)), not a real separation for any printer, paper or ink — see the explainer below for what that means and what to use instead for anything actually going to print.

    Every HEX-to-CMYK converter online, this one included, computes the same formula: K = 1 − max(R, G, B), then C, M and Y from what's left after removing K. It is pure device-independent arithmetic, and the honest thing to say about it — which almost nobody selling a CMYK converter says — is that it models nothing about any actual printer, ink set or paper. Real print separation depends on a specific press, a specific ink formulation, and a specific paper's absorption characteristics, all captured in an ICC profile that this formula never consults, because it can't: a hex value alone doesn't carry that information.

    The proof that this formula isn't modeling a real print process is its own reversibility. We tested every one of the 16,777,216 possible 8-bit sRGB colors through this exact RGB → CMYK → RGB round trip: all of them survived unchanged, with the worst floating-point error measured at 5.7×10⁻¹⁴ — effectively zero. A real ink separation loses information — dot gain, ink limiting, paper absorption all destroy some part of the original signal on the way to paper, which is exactly why professional print software can't undo a real separation and get the original color back exactly. A conversion that never loses anything cannot be modeling a process that always does.

    A worked example, measured directly: #3b82f6 (a mid-blue) converts to cmyk(76% 47% 0% 4%) under this formula. That number is internally consistent and will re-derive #3b82f6 exactly if you run it back through the same formula — but it says nothing about what a commercial printer's actual CMYK plates would need to reproduce that blue on a specific paper stock, under a specific press's ink behavior.

    What to do instead, if this needs to go to an actual printer: ask the print shop or press operator for their ICC profile (or, for a specific known press, a standard profile like GRACoL or SWOP), and convert using color-managed software — Adobe products, GIMP with a color-managed workflow, or dedicated prepress tools — that can apply that profile. That conversion accounts for the specific ink set and paper the naive formula above has no way to know about, and it will generally produce different C/M/Y/K numbers than this page for the same input color.

    This page's number is still useful for what it actually is: a fast, consistent, and honestly-labeled approximation for design mockups, presentations, or any context where you need a plausible CMYK value and aren't sending it directly to a press. It is not, and cannot be, a substitute for a real print-production color conversion.

    Frequently asked questions

    Is this HEX to CMYK conversion accurate for printing?
    No — and no browser-based converter's naive CMYK formula is, including every other one online. It's device-independent arithmetic (K = 1 − max(R,G,B), then C/M/Y from the remainder) with no connection to any real printer, ink or paper. For anything actually going to press, get the printer's ICC profile and convert with color-managed software.
    How do you know this formula isn't modeling real ink?
    We measured it directly: all 16,777,216 possible 8-bit sRGB colors survive an RGB → CMYK → RGB round trip through this formula with effectively zero error (worst case 5.7×10⁻¹⁴). A real print separation always loses information on the way to paper — dot gain, ink limiting, paper absorption. A conversion that loses nothing cannot be modeling a process that always does.
    What should I use instead for print-accurate color?
    Ask your printer for their ICC profile — a standard one like GRACoL or SWOP if you don't have a press-specific one — and convert using color-managed software that supports profile-based conversion, such as Adobe products or a color-managed GIMP workflow.
    Why do different online CMYK converters give me different numbers for the same hex?
    They generally don't, for the naive formula — K = 1 − max(R,G,B) is standard and most tools implement it identically. Differences usually come from rounding precision, or from a tool that (unlike this one) is silently applying some undisclosed profile-based adjustment on top of the naive formula.