This site runs best with JavaScript enabled.

How hexcolors work

Kevin Beck

August 13, 2019


Hexcolors are six-digit strings representing color values with a leading hash.

They’re a numerical form of RGB (Red/Green/Blue), with the first two digital representing R, digits three and four representing G, and digits five and six representing B.

#RRGGBB

For values where the R, G, and B couplets have the same value, the hexcolor can be shortened to just three digits.

For example, #FFFFFF is white. You can also write it as #FFF.

Source