Color Code Converter
Convert between HEX, RGB, HSL, and CMYK colour formats — instantly.
Colour formats explained
HEX — Six hexadecimal digits representing red, green, and blue channels (e.g. #3b82f6). Used in CSS, HTML, and most design tools.
RGB — Three values 0–255 for red, green, blue (e.g. rgb(59, 130, 246)). The native format of screens and monitors.
HSL — Hue (0–360°), Saturation (%), and Lightness (%). More intuitive for designers since adjusting lightness or saturation doesn't change the hue.
CMYK — Cyan, Magenta, Yellow, Key (Black) — the ink model used in print. Note: screen colours converted to CMYK are approximate; professional print requires colour-managed workflows.
Frequently asked questions
Why don't CMYK values match my design software?
CMYK conversion from RGB is not a single standard — it depends on the colour profile and ink characteristics of a specific printer. This tool uses a generic mathematical conversion. For print production, use colour-managed software like Adobe Illustrator.
What input formats are accepted?
You can enter HEX (#rrggbb), RGB (rgb(r, g, b)), or HSL (hsl(h, s%, l%)) values. CMYK input is not yet supported.
