Numerly

Hex to RGB Converter

Type or paste a hex code (with or without #). The RGB and HSL values update instantly. The preview swatch shows the actual color.

#3B82F6

How it works

Hex codes are parsed as three pairs of hexadecimal digits — each pair representing 0–255 for the red, green, and blue channels. We support 3-digit shorthand (#FAB), 6-digit (#FFAABB), and 8-digit with alpha (#FFAABBCC).

Frequently asked

What is a hex color?
A hex color is a hexadecimal representation of an RGB value. #FF0000 means red=255, green=0, blue=0 (pure red). The 3-digit shorthand #F00 expands to #FF0000.
Does this support alpha (transparency)?
Yes — paste an 8-digit hex like #FF0000CC and the last two characters are parsed as alpha (0–255).
Why does my color look slightly different on different screens?
Different displays have different color profiles (sRGB, P3, etc.). Hex codes are device-independent values; the rendered color depends on your monitor calibration.

Other generators

Popular calculators

Share

Popular converters