Color Code Converter
Convert color codes between HEX, RGB, HSL, CMYK and CSS formats. Color picker, harmony generator and recent colors — all instant.
Color format guide
Different applications use different color formats. Web browsers use HEX and RGB, image editors use CMYK, and CSS3 introduced HSL for easier manipulation. This converter handles all of them instantly.
6-digit hexadecimal. #RRGGBB where each pair is 00-FF. Example: #3B82F6 = Blue. Used in HTML, CSS, SVG and design tools. 3-digit shorthand: #RGB (e.g. #F00 = red).
Three values 0-255 for Red, Green, Blue. rgb(59, 130, 246). Also rgba(R,G,B,A) where A is opacity 0-1. Used in CSS, Photoshop, Figma and most design software.
Hue (0-360°), Saturation (0-100%), Lightness (0-100%). Most intuitive for design — change lightness to darken/lighten without changing the hue. hsl(221, 83%, 53%) = the same blue.
Cyan, Magenta, Yellow, Key (Black) — each 0-100%. Used in print design and professional printing. CMYK and RGB have different color gamuts — some RGB colors can't be reproduced in print.