Skip to main content

RGB to HEX Converter

Use the R, G, B sliders to set your color and instantly see the HEX code, HSL values, and RGBA string. Includes alpha transparency control and one-click copy for every format.

FreeRGB SlidersAlpha SupportHSL Output

#3B82F6

rgb(59, 130, 246)

100%

HEX

#3B82F6

HEX+Alpha

#3B82F6FF

HSL

hsl(217, 91%, 60%)

RGBA

rgba(59, 130, 246, 1.00)

RGB vs. HEX — when to use which

HEX is shorter and more common in design tools, brand guidelines, and CSS. RGB is preferred when you need to dynamically compose colors in CSS (e.g. with CSS custom properties) or when working programmatically with color channels. Both produce identical colors in browsers.