Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Microsoft FrontPage

Topic: Hexadecimal color codes


Colors in style sheets are specified using hexadecimal color codes. A color code has three parts

#00 00 00
Red Blue Green
Different values in place of these numbers create different colors. FF = 100% (Full intensity of certain color) C0 = 75% 80 = 50% 40 = 25% 00 = 0% (Zero intensity of certain color) Before you start you must know how numbers are written in hexadecimal. Normal Number 0 1 2 3 4 5 6 7 8 9 10 11 12 13 Number Name Zero One Two Three Four Five Six Seven Eight Nine Ten Eleven Twelve Thirteen ...and so on Hexadecimal digit 0 1 2 3 4 5 6 7 8 9 A B C D

Example: Hexadecimal color code for 75% red. Solutions: Google search: Type Hexadecimal color code for 75% red. Copy/Paste code in appropriate position. Memorize the above values and the hexadecimal digits for normal numbers (table). () Learn the following method of finding the hexadecimal code:

#00 00 00
Red
The base number for hexadecimal is 16. Thus, 216 = 256 - Find 75% of 256
75

Blue

Green

/100 x 256 = 192

- Divide 192 by 16

So, Our hexadecimal code for 75% red is

#C0 00 00
Red Blue Green
The quotient 12 is represented by C and the remainder is 0 = C0

Example: Hexadecimal code for 25% blue.

Pure colours (use 100%)... Pure RED is FF,00,00 (100% RED, no GREEN, no BLUE) Pure GREEN is 00,FF,00 (no RED, 100% GREEN, no BLUE) Pure BLUE is 00,00,FF (no RED, no GREEN, 100% BLUE) Pure YELLOW is FF,FF,00 (100% RED, 100% GREEN, no BLUE) Pure BLACK is 00,00,00 (no RED, no GREEN, no BLUE) Pure WHITE is FF,FF,FF (100% RED, 100% GREEN, 100% BLUE) __________________________________________________________________________________________ Darker colours (use 50%)... Dark RED is 80,00,00 (50% RED, no GREEN, no BLUE) Dark GREEN is 00,80,00 (no RED, 50% GREEN, no BLUE)

You might also like