0% found this document useful (0 votes)
26 views10 pages

Hexadecimal Only

Uploaded by

seannfuentes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views10 pages

Hexadecimal Only

Uploaded by

seannfuentes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Hexadecimal Colors

 A hexadecimal color is specified with: #RRGGBB,


where the RR (red), GG (green) and BB (blue)
hexadecimal integers specify the components of the
color.
 All values must be between 00 and FF.
 For example, the #0000ff value is rendered as blue,
because the blue component is set to its highest
value (ff) and the others are set to 00.
Hexadecimal Colors

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

• An RGB color value is specified with the rgb() function,


which has the following syntax:
• rgb(red, green, blue)
• Each parameter (red, green, and blue) defines the
intensity of the color and can be an integer between 0
and 255 or a percentage value (from 0% to 100%).
• For example, the rgb(0,0,255) value is rendered as blue,
because the blue parameter is set to its highest value
(255) and the others are set to 0.
RGB Colors
Decimal
Color (Red, Green,
Blue)
Black (0, 0, 0)
White (255,255,255)
Red (255, 0, 0)
Green (0,255, 0)
Blue (0, 0,255)
Yellow (255,255, 0)
RGB Colors
Example

#p1 {background-color: rgb(255, 0, 0);} /* red */


#p2 {background-color: rgb(0, 255, 0);} /* green */
#p3 {background-color: rgb(0, 0, 255);} /* blue */

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy