Convert Colors Between Every Major Format
Different tools and contexts demand different color formats. CSS uses HEX and HSL. Design tools work in HSV. Print workflows need CMYK. APIs and data files pass RGB integers. This converter bridges all five formats: enter a color in any notation and instantly see the equivalent values in every other system, with a live preview swatch and one-click copy for each output.
HEX: The Web Standard
HEX codes represent red, green, and blue as two hexadecimal digits each, prefixed with #. The 3-character shorthand (#f00) doubles each digit (#ff0000). HEX is the most common color notation in CSS, HTML, and design specs because it is compact and unambiguous. Every browser, design tool, and image editor understands it.
RGB: The Color Model Behind Screens
RGB defines a color as a mix of red, green, and blue light, each ranging from 0 to 255. It is the native model of monitors, phone screens, and cameras. CSS uses the rgb() function, and programming languages typically store colors as RGB integers or tuples. When you need to manipulate color channels directly — darken a color, blend two colors, calculate contrast — RGB is the most natural format.
HSL and HSV: Human-Friendly Color Spaces
HSL and HSV describe colors the way humans think about them: hue (the color on the wheel, 0–360°), saturation (how vivid vs gray), and a brightness dimension. HSL uses lightness (0% black, 50% pure color, 100% white) and is the format behind CSS hsl(). HSV uses value (0% black, 100% full brightness) and is the model in Photoshop's color picker, Figma, and most design tools. The converter handles both.
CMYK: Print-Ready Values
CMYK defines a color by the percentage of cyan, magenta, yellow, and black ink needed to print it. Screen colors (RGB) have a wider gamut than print, so some bright or saturated screen colors cannot be reproduced exactly on paper. The converter uses the standard mathematical formula, which gives a serviceable approximation for web-to-print handoff, but professional printing requires ICC profile-based conversion in tools like Adobe InDesign.
Practical Workflow
A designer sends you a HEX value and you need the HSL equivalent for a CSS variable that adjusts lightness across themes. A client gives you a Pantone-to-CMYK reference and you need the HEX for the website. A developer logs an RGB tuple and you need to match it to the brand color in the style guide. This converter removes the manual math from all these handoffs — paste any format, copy the one you need.