Converting RGB to HEX
RGB describes a color as amounts of red, green, and blue light from 0 to 255 — the native model of every screen and camera. HEX is the six-digit hexadecimal notation (like #A855F7) used throughout HTML and CSS to describe screen colors.
RGB and HEX are two ways of writing the same on-screen color, so converting between them is exact — it simply re-expresses the color in a notation that fits web design, CSS, and sharing exact brand colors.
This RGB to HEX converter works instantly in your browser: type or pick a RGB color and the HEX value updates live, along with every other common format so you can copy whichever you need. Nothing is sent to a server, and it is completely free with no limits.
When do you need HEX?
Reach for HEX when you are working on web design, CSS, and sharing exact brand colors. Designers and developers routinely convert RGB to HEX to move a color between a web workflow and a web one without eyeballing it. If you want to grab a color straight from an image instead of typing it, try our color picker from image, or build a full scheme with the palette generator.
You can also convert in the other direction with our HEX to RGB converter, or jump to any other format — the tool always shows HEX, RGB, HSL, HSV, and CMYK side by side.