How it works
K = 1 − max(R, G, B); C = (1 − R − K) / (1 − K), and likewise for M and Y. For exact print colors use your printer’s ICC profile.
Check readability
Test the color as text on a background with the color contrast checker.
Other conversions
HEX to RGB · RGB to HEX · HEX to HSL · HSL to HEX · CMYK to RGB · HEX to OKLCH · OKLCH to HEX · CSS color names