Convert a hexadecimal color code into the equivalent RGB value and CSS color


A straightforward tool for converting HEX to RGB is accessible on our website, along with many more resources.

hex to rgb converter, HEX to RGB

The Guide to Converting from HEX to RGB Colors:

You probably need to know how to convert HEX colours to RGB colours if you want to utilise them in your CSS or web design projects. Although hexadecimal codes are shorter and simpler to share, both colour schemes represent the same thing. Hex codes are more compact. Each format has its own set of applications that are exclusive to it and is compatible with CSS and other coding languages.

The following paragraphs outline the advantages of using each format. Learn how to change from HEX to RGB by reading on. Working with colour palettes and CSS will be lot simpler after you have mastered the HEX to RGB conversion procedure.

Two digits are used to represent a colour in HEX codes. To convert a hex colour code to the RGB colour space, first obtain the corresponding decimal value by multiplying two digits together. You could also use a converter from hexadecimal to RGB (red, green, and blue) format.

The HEX to RGB converter is also free in Sublime Text 2, which you can download here. Package Control can be used to instal it. After that, instal it by using a keyboard shortcut. In Sublime Text, you can also use a for-loop or a regular expression.

The preview displays an exact depiction of the RGB colour. Always keep in mind that while establishing colours in digital picture editing software, the RGB value is crucial. The HEX to RGB colour converter must be understood before you may supply colour values.

HEX to RGB color table

Color Color


Hex (R,G,B)
  Black #000000 (0,0,0)
  White #FFFFFF (255,255,255)
  Red #FF0000 (255,0,0)
  Lime #00FF00 (0,255,0)
  Blue #0000FF (0,0,255)
  Yellow #FFFF00 (255,255,0)
  Cyan #00FFFF (0,255,255)
  Magenta #FF00FF (255,0,255)
  Silver #C0C0C0 (192,192,192)
  Gray #808080 (128,128,128)
  Maroon #800000 (128,0,0)
  Olive #808000 (128,128,0)
  Green #008000 (0,128,0)
  Purple #800080 (128,0,128)
  Teal #008080 (0,128,128)
  Navy #000080 (0,0,128)



Aarim Khan

CEO / Co-Founder

Our goal is to provide online free tools so you don't have to install any software for basic usages. We are trying to add more tools and make these tools free forever.

We care about your data and would love to use cookies to improve your experience.