Web Color

Color Basics

Colored Light

Color Bit Depth

Powers
of 2
Colors
Available
The Math
28 = 256  = 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2
216 = 65,536 = 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2
224 = 16,777,216 = 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2

Color Considerations

Methods for specifying color on the web

Intro

Color Names

RGB Percentage

RGB Integer, also referred to as RGB Decimal

RGBA - The "A" value provides for levels of color opacity

Example of the Effect of Alpha Settings: Varying the Opacity of Text

Text Color Specifications
alpha value = 1
color:rgba(0,255,0,1.00);
Text Color Specifications
alpha value = .65
color:rgba(0,255,0,.65)

Text Color Specifications
alpha value = .35
color:rgba(0,255,0,.35)

ABC ABC ABC
ABC ABC ABC

 

Hexadecimal

Hexadecimal Shorthand

Color Conclusion

Which way of defining colors is best?

Web Safe Colors

More info on color and color theory

Table of colors and the different ways of specifying them


black white
Color specification type

RGB Integer
rgb(0,0,0)
rgb(255,255,255)
RGB Percentage
rgb(0%,0%,0%)
rgb(100%,100%,100%)
Long Hexadecimal
#000000
#FFFFFF
Short Hexadecimal
#000
#FFF
Color Names
black
white
Primary Colors
of Light
red
green
blue
Color specification type
RGB Integer
rgb(255,0,0) rgb(0,255,0) rgb(0,0,255)
RGB Percentage
rgb(100%,0%,0%) rgb(0%,100%,0%) rgb(0%,0%,100%)
Long Hexadecimal
#FF0000 #00FF00 #0000FF
Short Hexadecimal
#F00 #0F0 #00F
Color Names
red lime blue
Secondary Colors
of Light
yellow cyan
magenta
Color specification type
RGB Integer
rgb(255,255,0) rgb(0,255,255) rgb(255,0,255)
RGB Percentage
rgb(100%,100%,0%) rgb(0%,100%,100%) rgb(100%,0%,100%)
Long Hexadecimal
#FFFF00 #00FFFF #FF00FF
Short Hexadecimal
#FF0 #0FF #F0F
Color Names
yellow aqua fuchsia

Assignment