Adding Color in HTML

  1. Use a Red-Green-Blue Hexadecimal Triplet to describe the color. This is also called a RGB Hex Triplet, or just a Hex Triplet.
  2. The first two digits are for how much red, the second two are for the green, the last two for the blue.
  3. Here are some examples: #9966CC, #00FF33, #CC0099, #000033, #FFFF66. Always use the # before the six digits.
  4. Hexadecimal digits go from 0 to F, so: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
  5. Here are some easy 2-digit values to use:
  6. Other 2-digit numbers can be used but will not show up the same on all computers.

To color the whole page, the <BODY> tag at the top must be changed...

To make only some of the words or letters change color...

Links are automatically BLUE and PURPLE. So don't use colors link those for your background.