If all are set to full, you get white (#ffffff), and if all are null
values, you get black (#000000).
Hexadecimal can also be written in shorthand if the six-digit value is composed of pairs in
which both numbers are the same. For instance, #ff6600 (orange) can be written as #f60,
and #ffffff (white) can be written as #fff. All three pairs must consist of equal numbers.
For instance, you cannot use shorthand for #ffff01. Also, although hexadecimal can be
written in shorthand, many designers choose not to do so, because when all color values
are written in full, it tends to be easier to scan CSS files for specific values.
Web-safe colors
The 216-color web-safe palette uses hex combinations of the following hex value pairs
only: 00, 33, 66, 99, cc, and ff??”for example, #cc6699, #33ff66, and #ff0000.
Using these pairs provides you with 216 colors that are said to not dither on Macs and
Windows PCs that have 8-bit monitors (256 colors). Because the vast majority of monitors
sold since 2000 are able to display thousands or millions of colors, this palette is now
rarely used and is generally considered archaic and obsolete.
Color names
Although a significant number of HTML color names are supported by major browsers, the
CSS standard only recognizes the following 17.
THE ESSENTIAL GUIDE TO CSS AND HTML WEB DESIGN
448
Color name Color hex value Shorthand hex RGB
Aqua #00ffff #0ff 0,255,255
Black #000000 #000 0,0,0
Blue #0000ff #00f 0,0,255
Fuchsia #ff00ff #f0f 255,0,255
Gray (or Grey) #808080 n/a 128,128,128
Green #008000 n/a 0,128,0
Lime #00ff00 #0f0 0,255,0
Maroon #800000 n/a 128,0,0
Navy #000080 n/a 0,0,128
Olive #808000 n/a 128,128,0
Orange #ffa500 n/a 255,165,0
Purple #800080 n/a 128,0,128
Red #ff0000 #f00 255,0,0
Silver #c0c0c0 n/a 192,192,192
Teal #008080 n/a 0,128,128
White #ffffff #fff 255,255,255
Yellow #ffff00 #ff0 255,255,0
Although each color name in the preceding table begins with a capital letter (for book
style purposes), color names are case insensitive, and lowercase is most commonly used.
Pages:
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549