Hexadecimal Only
Hexadecimal Only
Hexadecimal
Color (#RRGGBB)
Black #000000
White #FFFFFF
Red #FF0000
Green #00FF00
Blue #0000FF
Yellow #FFFF00
Hexadecimal Colors
Example
#p1 {background-color: #ff0000;} /* red */
#p2 {background-color: #00ff00;} /* green */
#p3 {background-color: #0000ff;} /* blue */
Hexadecimal Colors
Example
C-M-Y-K
Cyan 00FFFF
Magenta FF00FF
Yellow FFFF00
Black 000000
Hexadecimal Colors
with Transparency
A hexadecimal color is specified with: #RRGGBB.
To add transparency, add two additional digits between 00
and FF.
Example
#p1a {background-color: #ff000080;} /*
red transparency */
#p2a {background-color: #00ff0080;} /*
green transparency */
#p3a {background-color: #0000ff80;} /*
blue transparency */
Hexadecimal Colors
with Transparency
A hexadecimal color is specified with: #RRGGBB.
To add transparency, add two additional digits between 00
and FF.
Example
#p1a {background-color: #ff000080;} /*
red transparency */
#p2a {background-color: #00ff0080;} /*
green transparency */
#p3a {background-color: #0000ff80;} /*
blue transparency */
Example
RGB Colors