Numerly

RGB to Hex Converter

Type three numbers (0–255) for red, green, and blue. The hex code updates as you type, with a live color swatch.

#3B82F6

How it works

Each RGB channel (0–255) is converted to a two-digit hexadecimal number, padded with a leading zero if needed. The three pairs are concatenated and prefixed with #.

Frequently asked

What is the maximum value for RGB?
255 per channel (8 bits). 0 is none of that color, 255 is the full channel intensity. (255, 255, 255) is white; (0, 0, 0) is black.
Why are some hex codes shorter (#FAB instead of #FFAABB)?
Shorthand is allowed when each pair has matching digits. #FAB is identical to #FFAABB — the parser duplicates each digit.
How do I get an RGBA hex with transparency?
Use the alpha slider — it adds two extra hex digits at the end (00 = transparent, FF = opaque).

Other generators

Popular calculators

Share

Popular converters