Convert RGB to Hex Color

RGB (Red Green Blue) is an additional color model of the 3 main colors, namely red, green and blue. In this model, colors are formed by combining different intensities of these three primary colors. Each color is represented by a numerical value ranging from 0 to 255 for each channel. The combination of these values creates a spectrum of colors, allowing for a wide range of possibilities in digital visuals.

In other side, Hexadecimal or Hex is a base-16 numeral system. It is commonly used in computing, image design, websites, and digital electronics. In the context of color, Hex is often used as a more human-friendly representation of RGB values. Hex codes consist of six alphanumeric characters, with the first two representing the red channel, the next two for green, and the last two for blue. Understanding the relationship between RGB and Hex is essential for seamless color code conversion.


RGB to Hex Color Converter

This is a free tool that you can use to convert RGB to Hex Color. Please, enter 0 to 255 in the top 3 columns, then press the "Convert" button:


How to Use?

You can use this RGB to hex color converter to make the conversion easier. You only need to do the following steps to make the conversion:

  • Enter 0 to 255 into the Red, Green, and Blue fields.
  • If you enter more than 255, it will be counted as 255.
  • Press the "Convert" button to get the results
  • See the color results that appear in the "Color Preview" column
  • Copy the Hex and HSL code.

The table below is some examples of RBB and Hex codes as examples.Or you can visit: HTML and CSS color codes.


Name dan Color Hexadecimal (Hex) Code RGB Code
White #FFFFFF rgb(255, 255, 255)
Black #000000 rgb(0, 0, 0)
Gray atau Grey #808080 rgb(128, 128, 128)
Silver #C0C0C0 rgb(192, 192, 192)
Red #FF0000 rgb(255, 0, 0)
Maroon #800000 rgb(128, 0, 0)
Brown #A52A2A rgb(165, 42, 42)
Magenta #FF00FF rgb(255, 0, 255)
Pink #FFC0CB rgb(255, 192, 203)
Orange #FFA500 rgb(255, 165, 0)
Dark Blue #00008B rgb(0, 0, 139)
Blue #0000FF rgb(0, 0, 255)
Purple #800080 rgb(128, 0, 128)
Green #008000 rgb(0, 128, 0)
Yellow #FFFF00 rgb(255, 255, 0)