Type a tool name, for example "keyword density" or "transcript".
Enter a HEX color code to instantly convert it to RGB, HSL, HSV, and CMYK formats.
Supports 3, 4, 6, and 8-digit HEX codes (e.g. FFF, 1D9D73, 1D9D73FF)
Quick samples:
CSS Color Name
-
RGB Channels
-
-
-
-
-
This hex to rgb converter turns any HEX color code into red, green and blue values, plus HSL, HSV and CMYK, in one step. Web designers, developers and marketers can type a 3, 4, 6 or 8-digit code, see a color preview, and copy each CSS-ready format with one click.
A HEX color code is a base-16 way of writing an RGB color, using two characters each for red, green and blue. Each pair runs from 00 to FF, which equals 0 to 255 in everyday decimal numbers. The converter shows you those three decimal numbers.
Take 1D9D73. The pairs are 1D, 9D and 73, which equal 29, 157 and 115. The RGB color is therefore 29, 157, 115. Both notations draw the same color on screen; only the way it is written changes.
| Length | Example | Meaning |
|---|---|---|
| 3 digits | F60 | Shorthand, each digit doubled |
| 4 digits | F608 | Shorthand plus alpha |
| 6 digits | 1D9D73 | Red, green, blue |
| 8 digits | 1D9D7380 | Full color plus alpha |
Alpha is opacity. The last pair runs from 00 (fully transparent) to FF (fully opaque), and the tool shows it as a decimal between 0 and 1, the same scale CSS uses for rgba colors.
You only need a HEX code and a few seconds. Follow these steps:
Entering 1D9D73 gives RGB 29, 157, 115, which is the Jade sample. The tool also returns HSL 160, 69%, 36%, HSV 160, 82%, 62% and CMYK 82, 0, 27, 38.
Here is what that tells you. Green (157) is the strongest channel, blue (115) is in the middle and red (29) is low, so the color is a teal-leaning green. A hue of 160 degrees sits between pure green at 120 and cyan at 180. A lightness of 36% means it is darker than a mid-tone.
Now add alpha. Entering 1D9D7380 keeps the same RGB values but shows Alpha 0.5, because 80 in hex is 128 and 128 divided by 255 is about 0.5. That is a half-transparent version of the same green, ready for an overlay.
To convert by hand, split the code into three pairs and turn each pair into a decimal: multiply the first digit by 16 and add the second. Letters count as A=10, B=11, C=12, D=13, E=14 and F=15.
For 9D, that is 9 × 16 = 144, plus 13, which gives 157. For a 3-digit code such as F60, double each digit first to get FF6600, then convert to 255, 102, 0. For an alpha pair, convert it the same way and divide by 255.
In a spreadsheet, the HEX2DEC function does the same job on each pair. In CSS, write the result as rgb(29, 157, 115). The converter saves you the arithmetic and avoids slips on long lists of brand colors.
Each output answers a different question, so pick the one your task needs.
The three bars show how much of each channel is present out of 255. Equal values make a gray, such as 128, 128, 128. One dominant channel pushes the color toward red, green or blue. Pure black is 0, 0, 0 and pure white is 255, 255, 255.
HSL (hue, saturation, lightness) is the easiest format for building variations. Keep the hue and raise the lightness from 36% to 46% for a hover state, or lower it for a pressed state. HSV (hue, saturation, value) matches the sliders found in many graphics editors.
CMYK lists cyan, magenta, yellow and black percentages, so it is a useful starting point for print briefs. Treat it as an estimate: real printed color depends on paper, ink and the printer's color profile.
Alpha only appears for 4 and 8-digit codes. 1 is solid and 0 is invisible. Use it for overlays, shadows and glass effects.
Anyone who receives colors in one format and needs another will use it regularly.
If your color lives inside a picture, pull it out first with the image color extractor or the color palette extractor, then paste the HEX here. To pick a color visually instead of typing a code, try the color picker.
Most problems come from the code itself, not the conversion.
The tool converts one code at a time, so a long palette means pasting each color in turn. It accepts HEX input only. To go the other way, use the RGB to HEX converter. The CMYK figures are a mathematical conversion, not a print-profile match, so check a physical proof for color-critical work.
Fast, accurate conversion keeps your design values consistent from mockup to stylesheet to print. Type a code or click a sample above to see every format at once, and explore more utilities in the image editing and optimization tools hub when you are ready for the next step.
Your report has been submitted. We will look into this issue.
A VPN changes your network exit. It does not guarantee anonymity.
Themes, plugins, code, video, audio, graphics & more from 90,000+ authors.
Web Development
Design & Media
Unlimited Access
Explore Envato Market