Skip to content
SimpleConvertSimpleConvert

RGB to HEX Color Converter

Convert RGB color values to hexadecimal (HEX) web color codes with live color swatch and preview.

How to use it

  • Enter RGB values like rgb(91, 83, 232) or pick from color wheel to get HEX code.

Examples

rgb(91, 83, 232)#5B53E8

RGB describes a color as three numbers from 0-255 for red, green and blue light. HEX packs the same three values into a 6-character code, two hex digits per channel, prefixed with #. rgb(91, 83, 232) becomes #5B53E8 because 91 in hex is 5B, 83 is 53, and 232 is E8.

Both describe exactly the same color — HEX is just the more compact form used in CSS, design tools and most style guides, while RGB is closer to how screens actually mix light.

Where this comes up

  • Copying a color picked in a design tool (which shows RGB) into CSS or HTML, which usually wants hex
  • Matching brand colors across a style guide that lists both formats
  • Reading pixel color values from an image editor and converting them to a web-ready hex code
Runs entirely in your browser. Nothing you type is uploaded, logged or shared.

Last updated 18 August 2026