🔢 RGB to HEX Converter
rgb(29, 135, 241) converts to #1d87f1 — each 0–255 channel written as a two-digit base-16 pair.
How the rgb to hex converter works
Each channel (0–255) becomes a two-digit hexadecimal number: 29 → 1d, 135 → 87, 241 → f1, concatenated as #1d87f1. Values below 16 get a leading zero (10 → 0a) — the most common manual-conversion mistake.
HEX is the compact form most tools, CSS codebases and brand guides standardize on — a single token that survives copy-paste. Converting from the RGB values a color picker or screenshot tool reports is a constant small task in design work.
Frequently asked questions
How do I convert RGB to HEX manually?
Divide each channel by 16: the quotient is the first digit, the remainder the second (10–15 become a–f). 241 ÷ 16 = 15 r 1 → f1.
Why does my HEX code look wrong with small values?
Channels under 16 need a leading zero: rgb(0, 10, 200) is #000ac8, not #0ac8. The converter pads automatically.
Can HEX express transparency?
Yes — 8-digit HEX appends an alpha pair: #1d87f180 is 50% transparent. Support is universal in modern browsers.
Is uppercase or lowercase HEX correct?
Both are valid and identical (#1D87F1 = #1d87f1); most style guides prefer lowercase for consistency.
Is anything uploaded?
No — local, instant, works offline.