Using Hexadecimal Color Codes


The hexadecimal color system is used for setting colors in HTML. You can use the same system to set colors for you HanengCharts charts. This is a little tutorial for those of you that want to know how to use hex color codes.

There are 16.7 million different colors in the hexadecimal color system. Each of the 6 digits in the hexadecimal code is broken into 3 seperate groups...
  • #XXxxxx - Red Color Value
  • #xxXXxx - Green Color Value
  • #xxxxXX - Blue Color Value
Each digit is a value from 0 to F, in the hexadecimal system. The hexadecimal color system goes from 0 to F (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F). 0 is the null (nothing) value, and F is the highest value. So #000000 (no red, no blue, no green) is black and #FFFFFF (full red, full green, full blue) is white.


So if the first two digits (red values) are full (FF) and the other four are null (00) the color will be red.

#FF0000 =

If the first two are null (00), the third and fourth digit (green value) are full (FF), and the fifth and sixth digit are null (00), the color will be green.

#00FF00 =

If the first four digits are null (00), and the fifth and sixth digit (blue value) are full (FF), the color will be blue.

#0000FF =



If all the 3 groups (red, green, blue) have the same value the color will be white, black or a shade of gray:

#000000 #111111 #222222 #333333 #444444 #555555 #666666 #777777
#888888 #999999 #AAAAAA #BBBBBB #CCCCCC #DDDDDD #EEEEEE #FFFFFF



By mixing different amounts of red, green and blue you can get any color you want.
Here are some examples:

#FFFF00 #00FFFF #FF00FF #ABCDEF #FEDCBA #A1F4BB #008B8B #00008B



Here are some links to websites with more information:

Color picker for html. Interactive HEX color picker. (JAVA applet)