HEX to RGB and RGB to HEX
Convert a HEX code like #FF5733 to RGB, or turn RGB values back into a HEX code. Both formats are the standard way to write colors for websites and CSS.
Instantly convert colors between HEX, RGB, HSL, HSV and CMYK. Type in any field and every other format updates. Fast, free and no signup.
Click the color to open your device's color picker.
Works with HEX, RGB, HSL, HSV, CMYK and CSS color names.
Lighter tints on the left, darker shades on the right. Click one to use it.
Everything happens in your browser. Nothing you type is uploaded or stored.
Type a code in any field, paste a color, or pick one with the color picker.
HEX, RGB, HSL, HSV and CMYK all update instantly as you type.
Click Copy next to the format you need and paste it into your project.
Looking for a free color converter? Convert color codes between HEX, RGB, HSL, HSV, and CMYK in one place. Type a value into any field and every other format updates instantly, so you can turn HEX into RGB, RGB into HEX, or HSL into RGB without doing the maths yourself. You can also paste a color, pick one visually, or use the tints and shades to explore related colors. The converter runs in your browser, so nothing is uploaded, and there is no signup or watermark.
Convert a HEX code like #FF5733 to RGB, or turn RGB values back into a HEX code. Both formats are the standard way to write colors for websites and CSS.
Switch to HSL or HSV when you want to adjust a color by hue, saturation, and lightness or value. They are often easier to tweak than raw red, green, and blue numbers.
See the CMYK equivalent of a screen color to get a starting point for print work. The value is an approximate conversion, so always check a printed proof.
You do not need design software to convert a color code. Use the online color converter by following these simple steps.
You can paste values such as #4F46E5, rgb(79, 70, 229), hsl(243, 75%, 59%), or a CSS color name like red. Transparency (alpha) is not included in the converted values.
Every color format describes the same color in a different way. Knowing what each one means helps you pick the right one.
A HEX code is three pairs of characters: the first pair is red, the second is green, and the third is blue. To convert HEX to RGB, turn each pair from base 16 into a normal number. For example, #FF5733 splits into FF, 57, and 33, which are 255, 87, and 51, so it is rgb(255, 87, 51). The same color in HSL is about hsl(11, 100%, 60%).
A three-character HEX code such as #F00 is shorthand where each character is repeated, so it means #FF0000, which is pure red.
The CMYK numbers shown here are calculated directly from the RGB color with a simple formula. They are a useful starting point, but they are not the same as a professional print conversion. Printed colors depend on the paper, the inks, and the color profile of the printer, and some bright screen colors cannot be reproduced in print at all. Check a printed proof before a print job.
Our free color converter makes it easy to translate color codes between HEX, RGB, HSL, HSV, and CMYK. Enter a color, copy the format you need, and use it in your design, website, or document. The tool is designed for convenient color conversion without signup or a watermark, and it works on desktop and on mobile browsers.
Find answers to common questions about converting colors between HEX, RGB, HSL, HSV, and CMYK.
Type your HEX code, for example #FF5733, into the HEX field. The RGB fields update immediately and show rgb(255, 87, 51). Click Copy next to RGB to copy the value.
Enter the red, green, and blue values in the R, G, and B fields. The HEX field shows the matching code, such as #FF5733, which you can copy with one click.
Enter your RGB values and read the HSL fields, which show hue, saturation, and lightness for the same color. You can also edit the HSL numbers directly and watch the RGB values change.
Both use hue and saturation, but the third value differs. HSL uses lightness, where 0% is black and 100% is white, while HSV uses value, where 100% is the brightest version of the color. They describe the same colors with different numbers.
CMYK stands for cyan, magenta, yellow, and key (black). It is the ink-based color model used in printing, unlike RGB, which is used for screens.
The CMYK value is a simple mathematical conversion from the screen color, so it is a good starting point but not a guarantee. Printed colors depend on the paper, ink, and printer profile, so check a proof before a print job.
You can paste HEX codes (with or without the #, in 3 or 6 digits), rgb() and hsl() values, hsv() and cmyk() values, three plain numbers such as 255, 87, 51, and CSS color names such as red or navy.
A tint is a color mixed with white to make it lighter, and a shade is a color mixed with black to make it darker. The strip under the color preview shows four tints, your color, and four shades, and you can click any of them to continue with that color.
No. The converter works with opaque colors. If you paste a value that includes transparency, such as rgba() or an 8-digit HEX code, the alpha part is ignored.
In browsers that support the EyeDropper feature, such as recent versions of Chrome and Edge on desktop, a Pick from screen button appears. It lets you pick a color from anywhere on your display and converts it right away. If you do not see the button, your browser does not support it.
No. The color converter runs in your browser, and the colors you enter are not uploaded or stored.
Yes. You can convert colors online for free, with no signup and no watermark.
Merge, split, compress and convert files in seconds. Explore everything in one place.
All Tools