HEX to RGB — the quick answer
A HEX code is just RGB written in base-16. Take #FF5733: split it into three pairs — FF, 57, 33 — and read each as a hexadecimal number: FF = 255, 57 = 87, 33 = 51. So #FF5733 is rgb(255, 87, 51). Same color, different costume.
The converter above keeps four formats in sync: HEX for web code, RGB for screens, HSL for designers who think in hue and brightness, and CMYK for printers who think in ink. Type in any box and the rest follow — click the swatch or any Copy button to grab what you need.
A short history of color codes
RGB came first, born with color television: red, green and blue phosphors that mix light additively — the same idea behind every screen you own. When the web arrived in the 1990s, HTML and CSS needed a compact way to write those three numbers, and HEX (#RRGGBB) became the standard: six characters instead of three numbers and two commas.
HSL showed up in 1970s computer-graphics research as the human-friendly alternative. Nobody thinks "I want 30% more green" — but "a bit brighter" or "more vivid" maps perfectly onto lightness and saturation. CMYK is older still in spirit: four-color process printing layers cyan, magenta, yellow and black (the "key") ink to reproduce full-color images on paper — the reverse of RGB, since ink subtracts light instead of adding it.
How it works: the formulas
HEX to RGB is a base-16 to base-10 conversion, one pair at a time:
RGB to CMYK figures out how much black ink the color already contains, then expresses the rest relative to what’s left:
FF → 255, 57 → 5×16+7 = 87, 33 → 3×16+3 = 51. Result: rgb(255, 87, 51).
The hue lands at 10.6° (warm orange-red), saturation is a full 100%, lightness 60%: hsl(10.6, 100%, 60%).
No black ink needed (K = 0), heavy magenta and yellow: cmyk(0%, 65.9%, 80%, 0%).
Popular colors: HEX, RGB and HSL
A ready reference of colors you’ll actually use — click a chip in the converter to load any of them:
| Color | HEX | RGB | HSL |
|---|
How big is it really? Everyday comparisons
What these colors do out in the wild:
Pure white — maximum brightness. Pair it with dark text for readable contrast.
Pure black — the absence of light. Softer near-blacks like #0F172A are easier on the eyes.
The alarm color — stop signs, error messages and record buttons.
This site’s pink — brand colors live as HEX codes in CSS.
Confirmations, in-stock labels and “go” buttons.
Stars, ratings and winners — metallic in print, flat on screen.
Visual guide: one color, four languages
The swatch never changes — only the notation does:
Figure: #FF5733 written as HEX, RGB, HSL and CMYK — four notations for the identical orange-red.
Common mistakes to avoid
Easy to slip up on these:
- Forgetting the #. CSS needs #FF5733 — without the hash it’s not a color. Most converter tools (like this one) accept both, but your stylesheet won’t.
- Misreading 3-digit hex. #F53 means #FF5533 — each digit doubles. It’s not #F50033.
- Thinking rgb(255, 0, 0) is “redder” than #FF0000. They’re the exact same color, just written differently.
- Using CMYK numbers on screen. CMYK is ink for paper; screens want RGB or HEX. Convert for the medium you’re actually designing for.
Pro tips
Small habits that save real time:
- Case doesn’t matter. #ff5733 = #FF5733 — pick whichever reads better in your code.
- Need transparency? Add two digits. #FF573380 is the same orange at 50% opacity — the last pair is the alpha channel.
- Copy the summary line to paste all four formats into your notes at once.
- Convert to CMYK before printing. Some bright screen colors simply can’t be printed — better to find out now than at the print shop.
Printable cheat sheet
Want the popular-colors table on paper? Print a clean, ink-friendly cheat sheet with one click — the page header, widgets and navigation are automatically hidden in the printout:
Fun facts
- 16.7 million colors. 256 × 256 × 256 — every #RRGGBB code is one of 16,777,216 possibilities.
- “Hex” just means base-16. Each pair of digits is one byte, from 00 (0) to FF (255).
- CSS started with 16 named colors like red, teal and silver back in 1996 — hex codes came along with them.
- Blue is special. Russian has separate everyday words for light blue (goluboy) and dark blue (siniy) — color language isn’t universal.
The complete guide
Why does one orange-red need four different names?
Frequently asked questions
How do I convert HEX to RGB?
Split the hex code into three pairs and convert each pair from base-16 to decimal. #FF5733 → FF = 255, 57 = 87, 33 = 51, so rgb(255, 87, 51). The converter above does it as you type.
What is the difference between HEX and RGB?
They describe the exact same color — HEX is just RGB written compactly in base-16. #FF0000 and rgb(255, 0, 0) are identical; web code prefers HEX, design tools often show RGB.
What does HSL stand for?
Hue (0–360° around the color wheel), Saturation (0–100%, how vivid), Lightness (0–100%, how bright). Designers love it because tweaking one slider — say, lightness — is intuitive.
When should I use CMYK instead of RGB?
Use CMYK for anything printed: flyers, packaging, business cards. Screens emit light (RGB); paper reflects it (CMYK ink). Convert before you send files to a printer.
Why does my printed color look different from my screen?
Screens mix light additively and can show brighter, more saturated colors than ink on paper. CMYK has a smaller gamut — some vivid screen colors simply cannot be printed.
How do I copy a color from this tool?
Click the big swatch to copy the HEX code, use any Copy button for its format, or hit "Copy result" to grab all four formats in one summary line.
Related tools
More converters and handy calculators:
