One color, many names
The same blue can be written as #1E90FF, rgb(30, 144, 255), hsl(210, 100%, 56%) or the keyword dodgerblue. Designers hand you one, code needs another, and a print shop asks for a fourth. This tool converts between HEX, RGB, HSL, HSB, CMYK and CSS named colors, with a live swatch so you can see what you've got.
HEX versus RGB
They describe the same thing. HEX is red, green and blue written in base 16, two digits each. RGB writes them as numbers from 0 to 255. HEX is shorter to type. RGB is easier to read and to animate in code.
For transparency, use eight-digit HEX or rgba. The last pair sets opacity. Browsers in 2026 support all of these.
Why HSL is handy
HSL stands for hue, saturation and lightness. It matches how people think about color. Want a darker shade of the same blue? Lower the lightness and leave the rest. Want a muted version? Lower saturation.
That makes HSL great for building a palette, a hover state or a dark mode. With RGB you'd fumble for numbers.
A word on CMYK
Screens mix light, so colors can be bright. Printers mix ink, and some screen colors can't be printed. The CMYK value here is a standard math conversion. It's a good estimate, but not exact.
For professional print, ask your printer for their color profile and proof a sample. Don't trust any converter for brand-critical work.
Harmony picks
The tool suggests complementary, analogous and triadic colors from your pick. They're starting points. Check contrast before using any pair for text, since pleasing and readable aren't the same.
HSB, sometimes called HSV, is what many design apps use in their color pickers. Use it to match a value from one of those apps.
Tips
Store colors as CSS variables so one change updates the whole site. Keep a short palette, and don't invent new shades on every page. Everything runs in your browser.
Which format when
Hex is compact and common in design handoffs. RGB is natural when you're working with screens and opacity. HSL is the friendliest for making variations: hold the hue, raise the lightness for a hover state or lower it for a pressed one.
CMYK matters for print, though screen colors and printed colors never match exactly. If a brand color needs to print, ask the printer for their profile.
Building shades the easy way
Start from your main color in HSL. Keep hue and saturation, then step lightness: 95 for a tint, 80, 60, 40 and 20. You get a scale that feels related. Tweak saturation a little at the extremes, since pure steps can look dull or harsh.
Check each pair of text and background against contrast rules before shipping.
A few conversions to try
Pure red is #FF0000, rgb(255, 0, 0), hsl(0, 100%, 50%). A mid gray is #808080, which in HSL is 0 saturation and 50 percent lightness. Paste any of them and watch the other formats update.
Print uses CMYK, which has a smaller range than screens, so a bright screen blue can turn dull on paper.