Universal Color Converter (HEX, RGB, HSL, CMYK)

Real-time bidirectional conversion between HEX, RGB, HSL, HSV, print CMYK, and CSS color variables. Includes tints, shades, and harmonies.

HEX
#C85A32
RGB
rgb(200, 90, 50)
HSL
hsl(16, 60%, 49%)
HSV / HSB
hsv(16, 75%, 78%)
CMYK (Print)
cmyk(0%, 55%, 75%, 22%)
Tailwind / CSS
bg-[#c85a32]
Tints & Shades Palette:
Lighter (90% Tint) Base Color Darker (90% Shade)
Color Harmonies:
Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/color-converter" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/color-converter" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - Universal Color Converter & Palette</a></div>

Color Models and Usage Guide

Digital displays, web development, and print publishing require distinct color representations:

Under the hood

parseAnyColor() tries the accepted notations in turn — hex with or without the hash, three- and six-digit forms, rgb() and hsl() functions, and named colours — and normalises whatever it recognises into RGB. From there rgbToHsl(), rgbToCmyk() and rgbToHex() derive the other spaces, hslToRgb() handles the inverse, and renderShades() plus renderHarmonies() generate the tint and complement sets you would otherwise look up in a palette tool. Swatches are painted on a canvas so the comparison is not affected by CSS colour management.

Formats, sizes and other limits

CMYK values are computed from RGB with a naive formula, which is fine for design hand-off and wrong for print: real conversions depend on the ink set, paper and ICC profile, so a press will not match the numbers shown. Alpha is not modelled — an eight-digit hex or an rgba() value loses its transparency channel. Harmony generation works in HSL, which is perceptually uneven, so the "complementary" colour is a rotation rather than a measured contrast pair.

Privacy: nothing is uploaded

Colour values are numbers you typed; conversion and palette generation happen on canvas in this tab, with no image, request or account involved.

Frequently asked questions

Can I use the CMYK values for print?

As a starting point only. Proper separation needs an ICC profile and the printer's ink specification; a browser-side formula cannot reproduce that.

What happens to transparency?

It is dropped. The tool works in solid RGB, so an rgba() input converts on its colour and ignores the alpha value.

Are the harmony colours accessible?

Not necessarily. They are rotations in HSL, not contrast-tested pairs — run them through the contrast checker before using them for text.