HEX to RGB
Convert HEX color codes to RGB values.
Convert a HEX colour code to RGB: #FF5733 becomes rgb(255, 87, 51). Paste 3, 4, 6 or 8-digit codes, with or without the #, or several codes one per line, and each is shown with a swatch. Short codes are expanded (#F53 is #FF5533), and 8-digit codes include transparency as rgba. The table below gives the same colour as HSL, HSV, CMYK and the nearest CSS colour name.
RGB
rgb(255, 87, 51)
| HEX | #FF5733 | |
|---|---|---|
| RGB | rgb(255, 87, 51) | |
| HSL | hsl(11, 100%, 60%) | |
| HSV / HSB | hsv(11, 80%, 100%) | |
| CMYK | cmyk(0%, 66%, 80%, 0%) | |
| CSS name | tomato (closest) |
Common use cases
- Get RGB values for a design tool, game engine or Android app
- Convert a brand's HEX colours for a presentation or document
- Check what colour a code in a stylesheet actually is
- Convert a whole palette at once, one code per line
How to use
- Paste a HEX code, or several on separate lines.
- Read the RGB value beside each swatch.
- Copy the value, or use the HSL, CMYK and other formats in the table.
FAQ
What do the six digits mean?
They're three pairs: red, green and blue, each from 00 (none) to FF (full, 255).
What is a 3-digit HEX code?
A shorthand where each digit is doubled: #0AF means #00AAFF.
Can I pick a colour instead of typing one?
Yes. Use the color picker to choose from a palette or an image and copy its code in any format.
Related tools
- RGB to HEXConvert RGB color values to HEX color codes.
- HSL to RGBConvert HSL color values to RGB format.
- Color PickerPick colors visually and get HEX, RGB, and HSL values.
- Color Wheel: Find Matching ShadesFree online color wheel: pick a shade and see its complementary, analogous, triadic and other schemes, on a…
- RGB to HSLConvert RGB color values to HSL format.
- Color Palette GeneratorIn Generators
- Random Color GeneratorIn Generators
- HEX Color ListIn Reference