Convert any color between HEX, RGB, HSL, HSV, and CMYK — paste a hex code, rgb(), or hsl() value and get every format instantly.
What is the Color Converter (HEX/RGB/HSL)?
Digital color lives in several competing formats, and every design or development task seems to demand a different one: CSS happily takes hex and rgb(), design tools export HSL, print workflows need CMYK, and color pickers often show HSV. A color converter translates a single color between all of these models so you never do the math by hand. Paste a hex code like #4F46E5, an rgb() value, or an hsl() value, and this tool returns the equivalent HEX, RGB, HSL, HSV, and CMYK representations in one glance.
Under the hood the conversions are exact arithmetic on the same underlying color: hex is just RGB written in base-16, HSL rearranges RGB into the more human-friendly hue/saturation/lightness, HSV is the variant most pickers use, and CMYK approximates the color for print inks. One honest caveat: CMYK is device-dependent and this conversion is an approximation — always proof printed swatches before final artwork. The converter also normalizes shorthand hex (#f00 becomes #ff0000) and clamps out-of-range values. Like every tool here, it runs entirely in your browser with no signup.
How to use the Color Converter (HEX/RGB/HSL)
- Paste your color into the input — #4f46e5, #f00, rgb(79, 70, 229), or hsl(243, 75%, 59%) all work.
- Click Convert to see the color expressed as HEX, RGB, HSL, HSV, and CMYK.
- Copy whichever format your task needs straight from the result cards.
- Use the values directly in CSS, design tools, or print software.
Color Converter (HEX/RGB/HSL) use cases
CSS development
Convert a designer’s hex swatch into rgb() or hsl() for use with opacity and color-mix(). HSL is especially handy when you need hover states — just nudge the lightness value.
Print preparation
Get a CMYK approximation of a screen color before sending artwork to a printer. It won’t replace a real proof, but it flags colors that will shift badly in print.
Design handoff
Translate between the formats different tools export so developers and designers stay in sync. One source color, every notation, zero transcription errors — everyone works from the same value, so nothing gets lost in translation.
Theming
Move a brand color from hex into HSL, where adjusting lightness for hover states or dark mode is a one-number change instead of a guessing game. Dark-mode variants become a simple lightness shift rather than a new round of eyeballing.
Learning color theory
See how one color decomposes across every major color model side by side — the fastest way to build intuition for how hue, saturation, and lightness relate to RGB. You will quickly develop an instinct for how the models map to each other.
Tips
- Shorthand hex like #f00 is expanded automatically to #ff0000.
- Hex digits are case-insensitive; the tool normalizes output to lowercase.
- CMYK values here are a standard naive conversion — fine for reference, not a substitute for a real ICC-profile proof.
- For accessible text colors, pair this with the contrast checker before shipping.