Convert RGB color values to HEX format instantly.
Type RGB values (0-255 for each channel).
Click Convert to transform RGB to HEX.
See the HEX code and color preview.
An RGB to HEX converter turns red, green, and blue channel values like rgb(58, 123, 213) into the compact hexadecimal form #3A7BD5 used across CSS, design tools, and brand guides. Same color, different notation.
Enter or slide the three channel values, watch the live preview, and copy the hex code in one click. It also handles the reverse trip through the companion HEX to RGB tool, so you can move between formats freely.
Each channel value from 0 to 255 converts to a two-digit hexadecimal number. Red 58 becomes 3A, green 123 becomes 7B, blue 213 becomes D5, and joined with a leading hash they form #3A7BD5. The math is base conversion, nothing more, which is why the color itself never changes.
Six characters carry the full color, easy to copy, compare, and store in design tokens and brand documents. Every browser, design tool, and framework accepts it. RGB earns its place when you need transparency (rgba) or want to compute on channels, but for a solid color handed from design to code, hex is the shared language.
Screenshots and image editors report picked pixels as RGB. JavaScript's canvas and getComputedStyle return RGB strings. Many color APIs and sensors emit raw channel values. Whenever a tool hands you three numbers and your stylesheet wants one hex code, this converter is the bridge.
HEX to RGB
Convert HEX color codes to RGB values.
Color Converter
Convert colors between HEX, RGB, and HSL formats instantly.
CMYK to HEX Converter
Convert CMYK print color values to HEX color codes instantly.
CMYK to RGB Converter
Convert CMYK print color values to RGB screen color values instantly.
HEX to CMYK Converter
Convert HEX color codes to CMYK print color values instantly.
HEX to HSL
Convert HEX color codes to HSL values.