Color Converter
How it Works
01Pick Encoding
Name, RGB, Hex, HSL, HWB, CMYK, or NCol
02Enter Values
Just the fields for your chosen encoding
03Press Calculate
Convert to all 7 formats simultaneously
04Copy & Use
One-click copy for any format — Hex, RGB, HSL, etc.
What is a Color Converter?
Why so many color encodings? Each one models color from a different angle: RGB matches how monitors mix light (additive). Hex is a compact RGB shorthand for the web. HSL separates hue (color), saturation (vividness), and lightness — making manual color tweaks intuitive for designers. HWB uses hue, whiteness, blackness — a more painterly model. CMYK matches how printers mix ink (subtractive) and is essential for offset/digital print workflows. NCol (Natural Colors) is a newer human-readable notation. Knowing how to translate between them is a daily need for web developers, designers, marketers, illustrators, and anyone working with brand colors.
Built for designers, developers, marketers, illustrators, brand owners, and anyone needing color in a different format. Free, fast, mobile-friendly, fully client-side — your colors never leave your browser.
Pro Tip: Hex (#RRGGBB) is the lingua franca of the web. RGB ↔ Hex is lossless. HSL is the easiest format to tweak — change one of three numbers and you'll know exactly what you're changing.
How to Use the Color Converter?
How do color conversions work?
All conversions go through RGB as the central representation. Once a color is in RGB (three integers 0–255), every other format derives via deterministic math. Hex is just the same bytes in base-16; HSL/HWB/CMYK are mathematical reprojections.
Color space conversions are mostly lossless if you keep enough precision, but quantizing to integer RGB does introduce small rounding errors when you round-trip through HSL/HWB/CMYK. For exact preservation, work in Hex or RGB.
Conversion Formulas — At a Glance:
Each RGB byte → 2 hex digits:
- Hex = "#" + R.toHex(2) + G.toHex(2) + B.toHex(2)
- 255 → FF, 128 → 80, 0 → 00
Example: rgb(255, 87, 51) → #FF5733.
Hue, Saturation, Lightness:
- L = (max + min) / 2
- S = depends on max/min/delta
- H = 60° per RGB sextant
CSS Color Module Level 4 standard. Used by web designers globally.
Hue, Whiteness, Blackness:
- H = same as HSL hue
- W = min(R,G,B) / 255
- B = 1 − max(R,G,B) / 255
Painterly model — pure hue diluted with white and darkened with black.
Cyan, Magenta, Yellow, Key (black):
- K = 1 − max(R,G,B)/255
- C = (1 − R/255 − K) / (1 − K)
- M, Y similarly
Subtractive — for ink on paper. Print profiles (ICC) refine the actual color.
When to Use Each Encoding:
Web standard. Most CSS, HTML, design tools default to it. Compact 6 characters. Lossless RGB shorthand.
Use: web colors, CSS, design specs.
Direct match for screen pixels. Used in image editors, code libraries, design APIs. Same info as hex, just numeric.
Use: programming, image processing.
Best for tweaking colors. Want it more vivid? Bump S. Brighter? Bump L. Different shade? Adjust H.
Use: design, color theming, manual adjustments.
Painterly: pure hue + whiteness + blackness. Recently added to CSS Color Module 4. Intuitive for tints/shades.
Use: tinting/shading workflows.
Subtractive — ink on paper. Required for offset printing. Math-only here; real print needs ICC profile + paper choice.
Use: print, packaging, brochures.
Hue letter (R Y G C B M) + percent + whiteness/blackness percents. Human-readable. Newer standard.
Use: cross-cultural color naming, accessibility.
Common Colors Across All 7 Encodings
Common colors and their values across all 7 encodings:
| Color | Hex | RGB | HSL | CMYK | NCol |
|---|---|---|---|---|---|
| Pure red | #FF0000 | 255, 0, 0 | 0°, 100%, 50% | 0%, 100%, 100%, 0% | R0, 0%, 0% |
| Pure green | #00FF00 | 0, 255, 0 | 120°, 100%, 50% | 100%, 0%, 100%, 0% | G0, 0%, 0% |
| Pure blue | #0000FF | 0, 0, 255 | 240°, 100%, 50% | 100%, 100%, 0%, 0% | B0, 0%, 0% |
| Hot pink | #FF69B4 | 255, 105, 180 | 330°, 100%, 71% | 0%, 59%, 29%, 0% | M50, 41%, 0% |
| Navy | #000080 | 0, 0, 128 | 240°, 100%, 25% | 100%, 100%, 0%, 50% | B0, 0%, 50% |
| White | #FFFFFF | 255, 255, 255 | 0°, 0%, 100% | 0%, 0%, 0%, 0% | R0, 100%, 0% |
Notice white in CMYK is 0% of all inks (because CMYK adds ink for darker — "white" is unprinted paper). And note how the same color appears completely different across encodings — knowing all of them lets you talk to designers, developers, and printers in their own language.
Who Should Use the Color Converter?
Technical Reference
Key Takeaways
Frequently Asked Questions
What is the Color Converter?
Under the hood, the tool first converts any input to RGB (the central representation), then projects from RGB to every other encoding using standard mathematical formulas. RGB ↔ Hex is lossless; HSL/HWB/CMYK round-trips are accurate to within ±1 due to integer rounding.
Built for designers, developers, print/branding professionals, marketers, and anyone needing colors across multiple formats.
How do I convert RGB to Hex?
(255).toString(16).padStart(2, "0"). The conversion is fully lossless in both directions.How do I convert Hex to RGB?
What's the difference between RGB, HSL, and HWB?
What's CMYK and why is it different from RGB?
Why does my CMYK look different in print?
What are HTML named colors?
red, blue, hotpink, navy, lightseagreen, etc. The browser maps each name to a fixed RGB value. Use them when readability matters more than precision; use hex/RGB when you need exact brand colors.What's NCol (Natural Colors)?
<letter><pct>, <whiteness%>, <blackness%>. The letter is one of R, Y, G, C, B, M (red, yellow, green, cyan, blue, magenta — 60° apart on the color wheel). The percent shows progress to the next letter. Example: R30 = 30% from red toward yellow = orange-red.Are conversions lossless?
Can I use this for accessibility / WCAG contrast?
What's the difference between sRGB and other RGB color spaces?
Is my data private?
Disclaimer
CMYK output is a math-only conversion — actual printed colors depend on paper, ink, and printer profile (ICC). For exact print-ready colors, consult your printer's color-managed workflow. RGB/HSL/HWB are display-accurate within sRGB.