Text and background colors

We suggest using a text color that is the same as the one shown here to work with specific background colors.  The colors shown for text are either black (#000000), white(#FFFFFF), or a light gray(#CFCFCF).  You can see from these examples that these three color choices for text work with just about anything.  There certainly is not a problem with using an alternate color as long as it works well with the background.   For example, substituting dark blue for black would work well in most cases

Webpage backgrounds can be a background image or a color.   The image can be a repeating pattern or a graphic for the entire page.  The background as a solid color can be almost any color.   The text used can have the same range of colors.  Here is a list of background colors and the hexadecimal code that can be used to specify the color.  Not all colors are shown.  There is a very good reason for this.  The total number of colors is in excess of 16 million.  You wouldn't expect us to display every color would you?

There are 128 colors that can be specified by using the name of the color instead of a hexadecimal code.  This can help you from having to remember the hexadecimal code.  Both backgrounds and text can use this naming scheme to specify the colors.

Named Colors (and their hexadecimal codes)

Snow
FFFAFA
GhostWhite
F8F8FF
WhiteSmoke
F5F5F5
Gainsboro
DCDCDC
FloralWhite
FFFAF0
OldLace
FDF5E6
Linen
FAF0E6
AntiqueWhite
FAEBD7
PapayaWhip
FFEFD5
BlanchedAlmond
FFEBCD
Bisque
FFFAF0
PeachPuff
FFDAB9
NavajoWhite
FFDEAD
Moccasin
FFE4B5
Cornsilk
FFF8DC
Ivory
FFFFF0
LemonChiffon
FFFACD
Seashell
FFF5EE
Honeydew
F0FFF0
MintCream
F5FFFA
Azure
F0FFFF
AliceBlue
F0F8FF
lavender
E6E6FA
LavenderBlush
FFF0F5
MistyRose
FFE4E1
White
FFFFFF
Black
000000
DarkSlateGray
2F4F4F
LightSlateGray
778899
Grey
BEBEBE
LightGray
D3D3D3
MidnightBlue
191970
CornflowerBlue
6495ED
DarkSlateBlue
483D8B
SlateBlue
6A5ACD
MediumSlateBlue
7B68EE
LightSlateBlue
8470FF
NavyBlue
000080
DimGrey
696969
SlateGrey
708090
MediumBlue
0000CD
RoyalBlue
4169E1
Blue
0000FF
DodgerBlue
1E90FF
DeepSkyBlue
00BFFF
SkyBlue
87CEEB
LightSkyBlue
87CEFA
SteelBlue
4682B4
LightSteelBlue
B0C4DE
LightBlue
ADD8E6
PowderBlue
B0E0E6
PaleTurquoise
AFEEEE
DarkTurquoise
00CED1
MediumTurquoise
48D1CC
Turquoise
40E0D0
Cyan
00FFFF
LightCyan
E0FFFF
CadetBlue
5F9EA0
MediumAquamarine
66CDAA
Aquamarine
7FFFD4
DarkGreen
006400
DarkOliveGreen
556B2F
DarkSeaGreen
8FBC8F
SeaGreen
2E8B57
MediumSeaGreen
3CB371
LightSeaGreen
20B2AA
PaleGreen
98FB98
SpringGreen
00FF7F
LawnGreen
7CFC00
Green
00FF00
Chartreuse
7FFF00
MedSpringGreen
00FA9A
GreenYellow
ADFF2F
LimeGreen
32CD32
YellowGreen
9ACD32
ForestGreen
228B22
OliveDrab
6B8E23
DarkKhaki
BDB76B
PaleGoldenrod
EEE8AA
LtGoldenrodYello
FAFAD2
LightYellow
FFFFE0
Yellow
FFFF00
Gold
FFD700
LightGoldenrod
EEDD82
Goldenrod
DAA520
DarkGoldenrod
B8860B
RosyBrown
BC8F8F
IndianRed
CD5C5C
SaddleBrown
8B4513
Sienna
A0522D
Peru
CD853F
Burlywood
DEB887
Beige
F5F5DC
Wheat
F5DEB3
SandyBrown
F4A460
Tan
D2B48C
Chocolate
D2691E
Firebrick
B22222
Brown
A52A2A
DarkSalmon
E9967A
Salmon
FA8072
LightSalmon
FFA07A
Orange
FFA500
DarkOrange
FF8C00
Coral
FF7F50
LightCoral
F08080
Tomato
FF6347
OrangeRed
FF4500
Red
FF0000
HotPink
FF69B4
DeepPink
FF1493
Pink
FFC0CB
MediumVioletRed
C71585
VioletRed
D02090
Magenta
FF00FF
Violet
EE82EE
Plum
DDA0DD
LightPink
FFB6C1
PaleVioletRed
DB7093
Maroon
B03060
Orchid
DA70D6
MediumOrchid
BA55D3
DarkOrchid
9932CC
DarkViolet
9400D3
BlueViolet
8A2BE2
Purple
A020F0
MediumPurple
9370DB
Thistle
D8BFD8

 

 

Hexadecimal Color Codes

FF0000 FF0033 FF0066 FF0099 FF00CC FF00FF
FF3300 FF3333 FF3366 FF3399 FF33CC FF33FF
FF6500 FF6633 FF6666 FF6699 FF66CC FF66FF
FF9900 FF9933 FF9966 FF9999 FF99CC FF99FF
FFCC00 FFCC33 FFCC66 FFCC99 FFCCCC FFCCFF
FFFF00 FFFF33 FFFF66 FFFF99 FFFFCC FFFFFF
CC0000 CC0033 CC0066 CC0099 CC00CC CC00FF
CC3300 CC3333 CC3366 CC3399 CC33CC CC33FF
CC6500 CC6633 CC6666 CC6699 CC66CC CC66FF
CC9900 CC9933 CC9966 CC9999 CC99CC CC99FF
CCCC00 CCCC33 CCCC66 CCCC99 CCCCCC CCCCFF
CCFF00 CCFF33 CCFF66 CCFF99 CCFFCC CCFFFF
990000 990033 990066 990099 9900CC 9900FF
993300 993333 993366 993399 9933CC 9933FF
996500 996633 996666 996699 9966CC 9966FF
999900 999933 999966 999999 9999CC 9999FF
99CC00 99CC33 99CC66 99CC99 99CCCC 99CCFF
99FF00 99FF33 99FF66 99FF99 99FFCC 99FFFF
650000 650033 650066 650099 6500CC 6500FF
663300 663333 663366 663399 6633CC 6633FF
666500 666633 666666 666699 6666CC 6666FF
669900 669933 669966 669999 6699CC 6699FF
66CC00 66CC33 66CC66 66CC99 66CCCC 66CCFF
66FF00 66FF33 66FF66 66FF99 66FFCC 66FFFF
330000 330033 330066 330099 3300CC 3300FF
333300 333333 333366 333399 3333CC 3333FF
336500 336633 336666 336699 3366CC 3366FF
339900 339933 339966 339999 3399CC 3399FF
33CC00 33CC33 33CC66 33CC99 33CCCC 33CCFF
33FF00 33FF33 33FF66 33FF99 33FFCC 33FFFF
000000 000033 000066 000099 0000CC 0000FF
003300 003333 003366 003399 0033CC 0033FF
006500 006633 006666 006699 0066CC 0066FF
009900 009933 009966 009999 0099CC 0099FF
00CC00 00CC33 00CC66 00CC99 00CCCC 00CCFF
00FF00 00FF33 00FF66 00FF99 00FFCC 00FFFF