Enter decimal RGB values or a 24-bit integer to get the equivalent HEX color code.
Each color channel (Red, Green, Blue) is a decimal number from 0–255. Converting to base-16: divide by 16, the quotient is the first digit, the remainder is the second. For example, 255 ÷ 16 = 15 remainder 15 → FF. Three channels concatenated give the 6-digit HEX code. The full 24-bit integer is simply R×65536 + G×256 + B.