Login   |      Register
English    中文

RGB to hexadecimal color online calculator

Category: Web


The value of rgb is 16 times the first digit of HEX plus the second digit of HEX. The RGB and HEX of the number 10 are the same. The difference is that HEX is a two-digit number, and 0 can be added in front. 10 Corresponding to A, 11 corresponds to B, 12 corresponds to C, 13 corresponds to D, 14 corresponds to E, and 15 corresponds to F. The following illustrates the conversion method of RGB to HEX by way of example.

Example 1: rgb(11,111,222)=#??????

11 ÷ 16 = 0, the remaining 11 corresponds to B, then the data of Hex is 0b.

111 ÷ 16 = 6, 15 corresponds to F, then the data of Hex is 6F.

222 ÷ 16 = 13, 14, 13, D, 14, e, then the data of Hex is DE.

Put together HEX data is #0B6FDE

 

   Sign in for comments!

Comment list ( 0 )

 

ICP备案号:京ICP备14021735号-1    © 2008 - 2019 IKCEST All rights reserved