Free RGB to HEX Converter: Online Color Code Tool

RGB to HEX Color Converter

#7f7f7f
HEX Code #7F7F7F Click to copy
RGB Code rgb(127, 127, 127) Click to copy

💡 Drag the sliders or type numbers between 0 and 255 to mix your color!

What is RGB?

RGB stands for Red, Green, and Blue. It is an additive color model used for digital screens. By mixing different intensities of these three primary colors from 0 up to 255, a computer can produce over 16 million distinct colors!

What is a HEX Color Code?

A HEX (Hexadecimal) color code is a 6-character code used in HTML and CSS to specify colors. It is just a different way of writing an RGB code! The first two characters represent Red, the middle two represent Green, and the last two represent Blue (in base-16 math instead of base-10).

How to Use This Tool

Use the range sliders to visually mix the red, green, and blue light streams, or manually type the values in the small input boxes. The master color block will change color on your screen instantly! Once you find the perfect shade, simply click on the HEX or RGB result cards to instantly copy the code to your clipboard.