Tools
PDF Tools 34
Image Tools 5
AI Writing 13
Text Tools 13
SEO and websites 22
YouTube and video 13
Calculators and converters 17
Developer Tools 13
Other tools 2
Scanner Blog
Language

HEX to RGB Color Converter

Convert color codes between HEX and RGB with a live color preview.

Related tools

All tools in this group
Illustration of a HEX color code turned into RGB values

One color, two notations: #4F46E5 and rgb(79, 70, 229)

Your designer sends the brand colors in HEX, your slide software or code library wants RGB, or the other way round. Both describe the same color: HEX writes the red, green and blue levels in hexadecimal, RGB writes them as numbers from 0 to 255. Jood's converter works in both directions and shows the color itself so you can check it by eye.

How to use it

  1. Type the color in any format.
  2. Click "Start Now".
  3. A swatch of the color appears with both notations on it; copy the one you need.

Formats it understands

  • Full or short HEX: with or without the #, like #3B82F6, 3B82F6 or the shorthand fff, which means #FFFFFF.
  • RGB: like rgb(79, 70, 229), or just the three numbers separated by commas or spaces: 79 70 229.
  • Transparency: rgba(0, 0, 0, 0.5) becomes #00000080, and a percentage such as 50% is accepted too. It works the other way with an eight-digit HEX code.

If you enter an RGB value above 255, the tool warns you instead of making up a color.

When you will need it

  • Moving logo colors from a design file into your site's CSS.
  • Entering brand colors in software that only takes RGB values.
  • Turning a semi-transparent color from a mockup into an eight-digit HEX code that CSS and modern browsers understand. Note that Android puts the two transparency digits first rather than last, so #00000080 becomes #80000000 there.

What about print?

HEX and RGB are screen notations. Printers work in CMYK, and converting to it depends on the paper and the press, which is why the tool does not offer it. If you are printing a brand identity, ask your printer or designer for the official CMYK values. For other hexadecimal conversions, between text and bytes, use the text to HEX converter. The calculation runs on Jood's server and nothing is stored.

FAQ

كل زوج يمثل قناة لونية: الأحمر ثم الأخضر ثم الأزرق، بقيمة of 00 إلى FF.
نعم، الصيغة المختصرة تكرر كل خانة مرتين وتعطي الأبيض.
استعمل rgba() وأضف قيمة بين 0 و1 كعنصر رابع.