RGB to Hex Converter
Enter red, green and blue values (0–255) — or paste rgb(…) into the first box — to get the hex color code.
#FF6347 is rgb 255 99 71.
#FF6347
HEX#FF6347
RGBrgb(255, 99, 71)
HSLhsl(9, 100%, 64%)
Decimal (24-bit)16,737,095
Step by step
- Split the hex code into three pairs: FF | 63 | 47
- Convert each pair from hexadecimal to decimal: FF = 15 × 16 + 15 = 255; 63 = 6 × 16 + 3 = 99; 47 = 4 × 16 + 7 = 71
- So #FF6347 = rgb(255, 99, 71)
How to convert RGB to hex
Convert each channel to two hex digits and join them: 255 → FF, 99 → 63, 71 → 47 → #FF6347 (tomato). Divide by 16 for the first digit and use the remainder for the second: 99 = 6 × 16 + 3 → 63.
Other direction: hex to RGB.
Frequently asked questions
What is rgb(255, 99, 71) in hex?
#FF6347.
What is rgb(0, 0, 0) in hex?
#000000 (black).