当前位置: 首页 > 文档资料 > CSS 入门教程 >

颜色参考(Color References)

优质
小牛编辑
125浏览
2023-12-01

下表显示了HTML 3.2中引入的16种颜色名称,以支持8位图形卡提供的16种颜色。 CSS中可以使用相同的颜色集 -

颜色名称十六进制值颜色节目
aqua#00ffff00ffff
black#000000000000
blue#0000ff0000ff
fuchsia#ff00ffff00ff
green#008000008000
gray#808080808080
lime#00ff0000ff00
maroon#800000800000
navy#000080000080
olive#808000808000
purple#800080800080
red#ff0000ff0000
silver#c0c0c0c0c0c0
teal#008080008080
white#ffffffffffff
yellow#ffff00ffff00

还有其他颜色,它们不是HTML或XHTML的一部分,但大多数IE或Netscape版本都支持它们。 这些颜色名称也可以在CSS中使用。

颜色名称十六进制值颜色节目
aliceblue#f0f8fff0f8ff
antiquewhite#faebd7faebd7
aquamarine#7fffd47fffd4
azure#f0fffff0ffff
beige#f5f5dcf5f5dc
bisque#ffe4c4ffe4c4
blanchedalmond#ffebcdffebcd
blueviolet#8a2be28a2be2
brown#a52a2aa52a2a
burlywood#deb887deb887
cadetblue#5f9ea05f9ea0
chartreuse#7fff005f9ea0
chocolate#d2691ed2691e
coral#ff7f50ff7f50
cornflowerblue#6495ed6495ed
cornsilk#fff8dcfff8dc
crimson#dc143cdc143c
cyan#00ffff00ffff
darkblue#00008b00008b
darkcyan#008b8b008b8b
darkgoldenrod#b8860bb8860b
darkgray#a9a9a9a9a9a9
darkgreen#006400006400
darkkhaki#bdb76bbdb76b
darkmagenta#8b008b8b008b
darkolivegreen#556b2f556b2f
darkorange#ff8c00ff8c00
darkorchid#9932cc9932cc
darkred#8b00008b0000
darksalmon#e9967ae9967a
darkseagreen#8fbc8f8fbc8f
darkslateblue#483d8b483d8b
darkslategray#2f4f4f2f4f4f
darkturquoise#00ced100ced1
darkviolet#9400d39400d3
deeppink#ff1493ff1493
deepskyblue#00bfff00bfff
dimgray#696969696969
dodgerblue#1e90ff1e90ff
firebrick#b22222b22222
floralwhite#fffaf0fffaf0
forestgreen#228b22228b22
gainsboro#dcdcdcdcdcdc
ghostwhite#f8f8fff8f8ff
gold#ffd700ffd700
goldenrod#daa520daa520
gray#808080808080
greenyellow#adff2fadff2f
honeydew#f0fff0f0fff0
hotpink#ff69b4ff69b4
indianred#cd5c5ccd5c5c
indigo#4b00824b0082
ivory#fffff0fffff0
khaki#f0e68cf0e68c
lavender#e6e6fae6e6fa
lavenderblush#fff0f5fff0f5
lawngreen#7cfc007cfc00
lemonchiffon#fffacdfffacd
lightblue#add8e6add8e6
lightcoral#f08080f08080
lightcyan#e0ffffe0ffff
lightgoldenrodyellow#fafad2fafad2
lightgreen#90ee9090ee90
lightgrey#d3d3d3d3d3d3
lightpink#ffb6c1ffb6c1
lightsalmon#ffa07affa07a
lightseagreen#20b2aa20b2aa
lightskyblue#87cefa87cefa
lightslategray#778899778899
lightsteelblue#b0c4deb0c4de
lightyellow#ffffe0ffffe0
limegreen#32cd3232cd32
linen#faf0e6faf0e6
magenta#ff00ffff00ff
mediumblue#0000cd0000cd
mediumorchid#ba55d3ba55d3
mediumpurple#9370db9370db
midnightblue#191970191970
mistyrose#ffe4e1ffe4e1
moccasin#ffe4b5ffe4b5
oldlace#fdf5e6fdf5e6
orange#ffa500ffa500
orchid#da70d6da70d6
peachpuff#ffdab9ffdab9
peru#cd853fcd853f
pink#ffc0cbffc0cb
plum#dda0dddda0dd
purple#800080800080
rosybrown#bc8f8fbc8f8f
royalblue#4169e14169e1
salmon#fa8072fa8072
sandybrown#f4a460f4a460
seagreen#2e8b572e8b57
sienna#a0522da0522d
skyblue#87ceeb87ceeb
slateblue#6a5acd6a5acd
steelblue#4682b44682b4
tan#d2b48cd2b48c
thistle#d8bfd8d8bfd8
tomato#ff6347ff6347
violet#ee82eeee82ee
wheat#f5deb3f5deb3
whitesmoke#f5f5f5f5f5f5
yellow#ffff00ffff00
yellowgreen#9acd329acd32