100% found this document useful (1 vote)
290 views

HTML Color Names and Codes

The document discusses HTML color names and codes. It provides a table listing 140 named colors along with their hexadecimal code, RGB value, and HTML color name. The document also provides background information on how colors are specified in HTML using RGB values or hexadecimal notation and discusses the sRGB color space used for web colors.

Uploaded by

Ma Ma
Copyright
© Attribution (BY)
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
290 views

HTML Color Names and Codes

The document discusses HTML color names and codes. It provides a table listing 140 named colors along with their hexadecimal code, RGB value, and HTML color name. The document also provides background information on how colors are specified in HTML using RGB values or hexadecimal notation and discusses the sRGB color space used for web colors.

Uploaded by

Ma Ma
Copyright
© Attribution (BY)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

HTML color names and codes

All 140 named HTML colors are listed below. You can use their name, hex code
or RGB value. Click on a color hex code to see the details.

Web colors are colors used in displaying web pages on the World Wide Web,
and the methods for describing and specifying those colors. Colors may be
specified as an RGB triplet or in hexadecimal format (a hex triplet) or according
to their common English names in some cases. A color tool or other graphics
software is often used to generate color values. In some uses, hexadecimal
color codes are specified with notation using a leading number sign (#).[1][2] A
color is specified according to the intensity of its red, green and blue
components, each represented by eight bits. Thus, there are 24 bits used to
specify a web color within the sRGB gamut, and 16,777,216 colors that may be
so specified.

Colors outside the sRGB gamut can be specified in Cascading Style Sheets by
making one or more of the red, green and blue components negative or greater
than 100%, so the color space is theoretically an unbounded extrapolation of
sRGB similar to scRGB.[3] Specifying a non-sRGB color this way requires the
RGB() function call. It is impossible with the hexadecimal syntax (and thus
impossible in legacy HTML documents that do not use CSS).

The first versions of Mosaic and Netscape Navigator used the X11 color names
as the basis for their color lists, as both started as X Window System
applications. Web colors have an unambiguous colorimetric definition, sRGB,
which relates the chromaticities of a particular phosphor set, a given transfer
curve, adaptive whitepoint, and viewing conditions.[4] These have been chosen
to be similar to many real-world monitors and viewing conditions, to allow
rendering to be fairly close to the specified values even without color
management. User agents vary in the fidelity with which they represent the
specified colors. More advanced user agents use color management to provide
better color fidelity; this is particularly important for Web-to-print applications.

Preview Name Hex RGB HTML name


maroon #800000 (128,0,0) maroon
dark red #8B0000 (139,0,0) darkred
brown #A52A2A (165,42,42) brown
fire brick #B22222 (178,34,34) firebrick
crimson #DC143C (220,20,60) crimson
red #FF0000 (255,0,0) red
Preview Name Hex RGB HTML name
tomato #FF6347 (255,99,71) tomato
coral #FF7F50 (255,127,80) coral
indian red #CD5C5C (205,92,92) indianred
light coral #F08080 (240,128,128) lightcoral
dark salmon #E9967A (233,150,122) darksalmon
salmon #FA8072 (250,128,114) salmon
light salmon #FFA07A (255,160,122) lightsalmon
orange red #FF4500 (255,69,0) orangered
dark orange #FF8C00 (255,140,0) darkorange
orange #FFA500 (255,165,0) orange
gold #FFD700 (255,215,0) gold
dark goldenrod #B8860B (184,134,11) darkgoldenrod
goldenrod #DAA520 (218,165,32) goldenrod
pale goldenrod #EEE8AA (238,232,170) palegoldenrod
dark khaki #BDB76B (189,183,107) darkkhaki
khaki #F0E68C (240,230,140) khaki
olive #808000 (128,128,0) olive
yellow #FFFF00 (255,255,0) yellow
yellow green #9ACD32 (154,205,50) yellowgreen
dark olive green #556B2F (85,107,47) darkolivegreen
olive drab #6B8E23 (107,142,35) olivedrab
lawn green #7CFC00 (124,252,0) lawngreen
chartreuse #7FFF00 (127,255,0) chartreuse
green yellow #ADFF2F (173,255,47) greenyellow
dark green #006400 (0,100,0) darkgreen
green #008000 (0,128,0) green
forest green #228B22 (34,139,34) forestgreen
lime #00FF00 (0,255,0) lime
lime green #32CD32 (50,205,50) limegreen
light green #90EE90 (144,238,144) lightgreen
pale green #98FB98 (152,251,152) palegreen
dark sea green #8FBC8F (143,188,143) darkseagreen
medium spring green #00FA9A (0,250,154) mediumspringgreen
spring green #00FF7F (0,255,127) springgreen
sea green #2E8B57 (46,139,87) seagreen
medium aquamarine #66CDAA (102,205,170) mediumaquamarine
medium sea green #3CB371 (60,179,113) mediumseagreen
light sea green #20B2AA (32,178,170) lightseagreen
dark slate gray #2F4F4F (47,79,79) darkslategray
teal #008080 (0,128,128) teal
dark cyan #008B8B (0,139,139) darkcyan
aqua #00FFFF (0,255,255) aqua
cyan #00FFFF (0,255,255) cyan
Preview Name Hex RGB HTML name
light cyan #E0FFFF (224,255,255) lightcyan
dark turquoise #00CED1 (0,206,209) darkturquoise
turquoise #40E0D0 (64,224,208) turquoise
medium turquoise #48D1CC (72,209,204) mediumturquoise
pale turquoise #AFEEEE (175,238,238) paleturquoise
aquamarine #7FFFD4 (127,255,212) aquamarine
powder blue #B0E0E6 (176,224,230) powderblue
cadet blue #5F9EA0 (95,158,160) cadetblue
steel blue #4682B4 (70,130,180) steelblue
cornflower blue #6495ED (100,149,237) cornflowerblue
deep sky blue #00BFFF (0,191,255) deepskyblue
dodger blue #1E90FF (30,144,255) dodgerblue
light blue #ADD8E6 (173,216,230) lightblue
sky blue #87CEEB (135,206,235) skyblue
light sky blue #87CEFA (135,206,250) lightskyblue
midnight blue #191970 (25,25,112) midnightblue
navy #000080 (0,0,128) navy
dark blue #00008B (0,0,139) darkblue
medium blue #0000CD (0,0,205) mediumblue
blue #0000FF (0,0,255) blue
royal blue #4169E1 (65,105,225) royalblue
blue violet #8A2BE2 (138,43,226) blueviolet
indigo #4B0082 (75,0,130) indigo
dark slate blue #483D8B (72,61,139) darkslateblue
slate blue #6A5ACD (106,90,205) slateblue
medium slate blue #7B68EE (123,104,238) mediumslateblue
medium purple #9370DB (147,112,219) mediumpurple
dark magenta #8B008B (139,0,139) darkmagenta
dark violet #9400D3 (148,0,211) darkviolet
dark orchid #9932CC (153,50,204) darkorchid
medium orchid #BA55D3 (186,85,211) mediumorchid
purple #800080 (128,0,128) purple
thistle #D8BFD8 (216,191,216) thistle
plum #DDA0DD (221,160,221) plum
violet #EE82EE (238,130,238) violet
fuchsia #FF00FF (255,0,255) fuchsia
orchid #DA70D6 (218,112,214) orchid
medium violet red #C71585 (199,21,133) mediumvioletred
pale violet red #DB7093 (219,112,147) palevioletred
deep pink #FF1493 (255,20,147) deeppink
hot pink #FF69B4 (255,105,180) hotpink
light pink #FFB6C1 (255,182,193) lightpink
pink #FFC0CB (255,192,203) pink
Preview Name Hex RGB HTML name
antique white #FAEBD7 (250,235,215) antiquewhite
beige #F5F5DC (245,245,220) beige
bisque #FFE4C4 (255,228,196) bisque
blanched almond #FFEBCD (255,235,205) blanchedalmond
wheat #F5DEB3 (245,222,179) wheat
corn silk #FFF8DC (255,248,220) cornsilk
lemon chiffon #FFFACD (255,250,205) lemonchiffon
light golden rod yellow #FAFAD2 (250,250,210) lightgoldenrodyellow
light yellow #FFFFE0 (255,255,224) lightyellow
saddle brown #8B4513 (139,69,19) saddlebrown
sienna #A0522D (160,82,45) sienna
chocolate #D2691E (210,105,30) chocolate
peru #CD853F (205,133,63) peru
sandy brown #F4A460 (244,164,96) sandybrown
burly wood #DEB887 (222,184,135) burlywood
tan #D2B48C (210,180,140) tan
rosy brown #BC8F8F (188,143,143) rosybrown
moccasin #FFE4B5 (255,228,181) moccasin
navajo white #FFDEAD (255,222,173) navajowhite
peach puff #FFDAB9 (255,218,185) peachpuff
misty rose #FFE4E1 (255,228,225) mistyrose
lavender blush #FFF0F5 (255,240,245) lavenderblush
linen #FAF0E6 (250,240,230) linen
old lace #FDF5E6 (253,245,230) oldlace
papaya whip #FFEFD5 (255,239,213) papayawhip
sea shell #FFF5EE (255,245,238) seashell
mint cream #F5FFFA (245,255,250) mintcream
slate gray #708090 (112,128,144) slategray
light slate gray #778899 (119,136,153) lightslategray
light steel blue #B0C4DE (176,196,222) lightsteelblue
lavender #E6E6FA (230,230,250) lavender
floral white #FFFAF0 (255,250,240) floralwhite
alice blue #F0F8FF (240,248,255) aliceblue
ghost white #F8F8FF (248,248,255) ghostwhite
honey dew #F0FFF0 (240,255,240) honeydew
ivory #FFFFF0 (255,255,240) ivory
azure #F0FFFF (240,255,255) azure
snow #FFFAFA (255,250,250) snow
black #000000 (0,0,0) black
dim gray #696969 (105,105,105) dimgray
gray #808080 (128,128,128) gray
dark gray #A9A9A9 (169,169,169) darkgray
silver #C0C0C0 (192,192,192) silver
Preview Name Hex RGB HTML name
light gray #D3D3D3 (211,211,211) lightgray
gainsboro #DCDCDC (220,220,220) gainsboro
white smoke #F5F5F5 (245,245,245) whitesmoke
white #FFFFFF (255,255,255) white

Sources:

https://www.colorsdata.com/colors/html_names_codes

https://en.wikipedia.org/wiki/Web_colors#HTML_color_names

You might also like