Color converter
Type a color in any format and get all the others at once. Gold #FFD700 is rgb(255, 215, 0), hsl(51, 100%, 50%) and CMYK 0, 16, 100, 0.
#FFD700| RGB | rgb(255, 215, 0) | |
|---|---|---|
| HSL | hsl(51, 100%, 50%) | |
| HSV | hsv(51, 100%, 100%) | |
| HWB | hwb(51 0% 0%) | |
| CMYK | cmyk(0, 16, 100, 0) | |
| OKLCH | oklch(0.89 0.18 95) | |
| OKLAB | oklab(0.887 -0.017 0.181) | |
| LAB | lab(87.5 2.9 86.6) | |
| LCH | lch(87.5 86.6 88) | |
| DECIMAL | 16766720 | |
| ≈ | Gold |
Free·No sign-up·Works offline after the first visit
How to use
- 1
1. Type or paste a color: #FFD700, ffd700, rgb(255, 215, 0), hsl(51 100% 50%), a CMYK value or a name such as "gold".
- 2
2. The table shows HEX, RGB, HSL, HSV, CMYK, OKLCH, LAB and the decimal value as you type.
- 3
3. Tap the copy button next to any row.
| from → to | how |
|---|---|
| HEX → RGB | split into 3 pairs and read each as a base-16 number: FF = 255, D7 = 215, 00 = 0 |
| RGB → HEX | write each number 0-255 as 2 hex digits: 255 = FF, 215 = D7, 0 = 00 → #FFD700 |
| RGB → HSL | scale to 0-1; L = (max + min) / 2; S from the spread max − min; H from which channel is largest |
| HSL → HSV | V = L + S × min(L, 1 − L); S(v) = 2 × (1 − L / V) |
| RGB → CMYK | K = 1 − max(R, G, B); C = (1 − R − K) / (1 − K), and the same for M and Y |
| RGB → OKLCH | linear RGB → LMS cone values → cube root → OKLab → lightness, chroma and hue |
How each format works
HEX and RGB describe the same thing: how much red, green and blue light a screen should show. RGB uses numbers from 0 to 255, HEX writes those numbers in base 16, two digits each. That is why converting between them never loses anything.
HSL and HSV describe the same colors by hue, saturation and lightness (or value). Both use the hue angle of the color wheel, 0-360°, but they measure "how light" differently: in HSL, 100% lightness is always white; in HSV, 100% value is the brightest version of the hue. Design apps such as Photoshop show HSB, which is the same as HSV. OKLCH is a newer CSS format: its lightness matches how light a color looks, so two colors with the same L really look equally light. LAB is used for measuring color differences.
Why CMYK on screen is approximate
CMYK is the ink model of printing: cyan, magenta, yellow and black. The real CMYK numbers depend on the paper, the inks and the press, and print shops use color profiles to get them. This converter uses the plain formula without a profile. It is fine for a first idea and for simple jobs, but for a print run, ask your print shop or convert in your design app with their profile. Bright screen colors such as #00FF00 cannot be printed exactly at all; they come out duller.
The converter does not include Pantone, RAL or embroidery thread charts, because those color systems belong to their makers. It shows the nearest common color name instead.
Questions and answers
How do I convert HSL to HSV?
Keep the hue. Then V = L + S × min(L, 1 − L), and the HSV saturation is 2 × (1 − L / V). Type the HSL value above to get it at once.
How do I convert an RGB color code to HEX?
Write each of the three numbers as two hex digits and join them: rgb(255, 215, 0) becomes #FFD700.
Is the CMYK conversion exact?
No. It is the simple formula; real print values depend on paper and inks, so check with your print shop.
Can I convert HEX to Pantone?
Not here: Pantone is a licensed color system. The converter shows the nearest common color name instead.