Decimal to hexadecimal converter for rgb colors

Convert each RGB channel (0–255) from decimal to hex and concatenate as #RRGGBB; our converter handles each channel as its own integer.

Detailed answer

RGB stores three bytes. For channel value 255, decimal-to-hex gives FF; 10 → 0A. Use the Decimal to Hexadecimal page three times (R, G, B) or the hub and pick hex output. This site’s tool treats each input as one integer in decimal and outputs hex with the usual 0–9A–F digits (optional 0x). It does not paste a full “rgb(r,g,b)” string in one field—split channels for predictable results.

Relationship context

Hex is compact for bytes: two hex digits cover exactly eight bits, which matches one RGB channel. Designers and CSS workflows routinely jump between decimal sliders and hex literals.

Quick conversion table

Decimal (input)Hexadecimal (output)
00
10x1
20x2
30x3
40x4
50x5
60x6
70x7
80x8
90x9
100xa
150xf
160x10
Decimal (input)Hexadecimal (output)
110xb
320x20
640x40
1280x80
2560x100
5120x200
10240x400
20480x800
40960x1000
81920x2000
163840x4000
327680x8000
655350xffff

More Decimal converters

Dedicated pages from Decimal to every other format (binary, octal, decimal, hexadecimal, character), with the same parsing rules as the main Number System Converter.