Advertisement.

EnchantedLearning.com is a user-supported site.
As a bonus, site members have access to a banner-ad-free version of the site, with print-friendly pages.
Click here to learn more.

ad
(Already a member? Click here.)


EnchantedLearning.com
HTML Colors

html colors
HTML color digits
When writing web pages, colors are represented by six digits in HTML (Hyper Text Markup Language). These digits are in hexadecimal (base 16) instead of the usual decimal (base 10) digits we are accustomed to.

In base 10 there are 10 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. In base 16, there are 16 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A (equal to ten), B (equal to eleven), C (equal to twelve), D (equal to thirteen), E (equal to fourteen), and F (equal to fifteen). In this system, using six hexadecimal digits, there are 224 (roughly 16 million) possible colors! The chart below shows 216 of the possible colors.

Every color on a computer screen is made up of red light, green light, and/or blue light. In HTML, the first pair of digits controls the amount of red light, the second pair controls the amount of green light, and the third pair controls the amount of blue light. For example, primary red is #FF0000, lime green is #00FF00, primary blue is #0000FF, white is #FFFFFF, black is #000000, and mid gray is #808080.

In HTML code, colors are used for text and backgrounds. Some examples of HTML color tags include:

〈BODY BGCOLOR="#FFFFFF"〉 This gives a web page a white background.
〈FONT COLOR="#FF00CC"〉 This makes the text pink.
〈TD BGCOLOR="#FFFF00"〉
This gives a table cell a yellow background.

Words for HTML colors (for these colors, you can use the word for the color instead of the numerical code):

black #000000 navy #000080 blue #0000FF green #008000
teal #008080 lime #00FF00 aqua or cyan #00FFFF maroon #800000
olive #808000 gray #808080 silver #C0C0C0 purple #800080
red #ff0000 fuchsia #FF00FF yellow #FFFF00 white #ffffff

Some HTML colors:
000000
Black
000033 000066 000099 0000CC 0000FF
Blue
003300 003333 003366 003399 0033CC 0033FF
006600 006633 006666 006699 0066CC 0066FF
009900 009933 009966 009999 0099CC 0099FF
00CC00 00CC33 00CC66 00CC99 00CCCC 00CCFF
00FF00
Lime
00FF33 00FF66 00FF99 00FFCC 00FFFF
Cyan=aqua
330000 330033 330066 330099 3300CC 3300FF
333300 333333 333366 333399 3333CC 3333FF
336600 336633 336666 336699 3366CC 3366FF
339900 339933 339966 339999 3399CC 3399FF
33CC00 33CC33 33CC66 33CC99 33CCCC 33CCFF
33FF00 33FF33 33FF66 33FF99 33FFCC 33FFFF
660000 660033 660066 660099 6600CC 6600FF
663300 663333 663366 663399 6633CC 6633FF
666600 666633 666666 666699 6666CC 6666FF
666900 666933 666966 666999 6669CC 6669FF
66CC00 66CC33 66CC66 66CC99 66CCCC 66CCFF
66FF00 66FF33 66FF66 66FF99 66FFCC 66FFFF
990000 990033 990066 990099 9900CC 9900FF
993300 993333 993366 993399 9933CC 9933FF
996600 996633 996666 996699 9966CC 9966FF
999900 999933 999966 999999 9999CC 9999FF
99CC00 99CC33 99CC66 99CC99 99CCCC 99CCFF
99FF00 99FF33 99FF66 99FF99 99FFCC 99FFFF
CC0000 CC0033 CC0066 CC0099 CC00CC CC00FF
CC3300 CC3333 CC3366 CC3399 CC33CC CC33FF
CC6600 CC6633 CC6666 CC6699 CC66CC CC66FF
CC9900 CC9933 CC9966 CC9999 CC99CC CC99FF
CCCC00 CCCC33 CCCC66 CCCC99 CCCCCC CCCCFF
CCFF00 CCFF33 CCFF66 CCFF99 CCFFCC CCFFFF
FF0000
Red
FF0033 FF0066 FF0099 FF00CC FF00FF
Fuchsia
FF3300 FF3333 FF3366 FF3399 FF33CC FF33FF
FF6600 FF6633 FF6666 FF6699 FF66CC FF66FF
FF9900 FF9933 FF9966 FF9999 FF99CC FF99FF
FFCC00 FFCC33 FFCC66 FFCC99 FFCCCC FFCCFF
FFFF00
Yellow
FFFF33 FFFF66 FFFF99 FFFFCC FFFFFF
White


Enchanted Learning®
Over 35,000 Web Pages
Sample Pages for Prospective Subscribers, or click below

Overview of Site
What's New
Enchanted Learning Home
Monthly Activity Calendar
Books to Print
Site Index

K-3
Crafts
K-3 Themes
Little Explorers
Picture dictionary
PreK/K Activities
Rebus Rhymes
Stories
Writing
Cloze Activities
Essay Topics
Newspaper
Writing Activities
Parts of Speech

Fiction
The Test of Time

Biology
Animal Printouts
Biology Label Printouts
Biomes
Birds
Butterflies
Dinosaurs
Food Chain
Human Anatomy
Mammals
Plants
Rainforests
Sharks
Whales
Physical Sciences: K-12
Astronomy
The Earth
Geology
Hurricanes
Landforms
Oceans
Tsunami
Volcano
Languages
Dutch
French
German
Italian
Japanese (Romaji)
Portuguese
Spanish
Swedish
Geography/History
Explorers
Flags
Geography
Inventors
US History

Other Topics
Art and Artists
Calendars
College Finder
Crafts
Graphic Organizers
Label Me! Printouts
Math
Music
Word Wheels

Click to read our Privacy Policy

E-mail


Enchanted Learning Search

Search the Enchanted Learning website for:



Advertisement.

Advertisement.


Copyright ©2007-2018 EnchantedLearning.com ------ How to cite a web page