HTML Color Codes
: HTML color codes chart: all 148 CSS color names by family and the 216 web-safe colors with hex, RGB and HSL values, plus the codes and nearest names for any colorRed colour names (9)
Pink colour names (6)
Orange colour names (5)
Yellow colour names (11)
Purple colour names (19)
Green colour names (23)
Cyan colour names (9)
Blue colour names (15)
Brown colour names (17)
White colour names (17)
Gray colour names (17)
Colour codes table
| IndianRed | Red | #CD5C5C | rgb(205, 92, 92) | hsl(0, 53%, 58%) | Black text 5.28:1 |
| LightCoral | Red | #F08080 | rgb(240, 128, 128) | hsl(0, 79%, 72%) | Black text 8.10:1 |
| Salmon | Red | #FA8072 | rgb(250, 128, 114) | hsl(6, 93%, 71%) | Black text 8.39:1 |
| DarkSalmon | Red | #E9967A | rgb(233, 150, 122) | hsl(15, 72%, 70%) | Black text 9.10:1 |
| LightSalmon | Red | #FFA07A | rgb(255, 160, 122) | hsl(17, 100%, 74%) | Black text 10.56:1 |
| Crimson | Red | #DC143C | rgb(220, 20, 60) | hsl(348, 83%, 47%) | White text 4.98:1 |
| Red | Red | #FF0000 | rgb(255, 0, 0) | hsl(0, 100%, 50%) | Black text 5.25:1 |
| FireBrick | Red | #B22222 | rgb(178, 34, 34) | hsl(0, 68%, 42%) | White text 6.67:1 |
| DarkRed | Red | #8B0000 | rgb(139, 0, 0) | hsl(0, 100%, 27%) | White text 10.01:1 |
| Pink | Pink | #FFC0CB | rgb(255, 192, 203) | hsl(350, 100%, 88%) | Black text 13.65:1 |
| LightPink | Pink | #FFB6C1 | rgb(255, 182, 193) | hsl(351, 100%, 86%) | Black text 12.71:1 |
| HotPink | Pink | #FF69B4 | rgb(255, 105, 180) | hsl(330, 100%, 71%) | Black text 7.93:1 |
| DeepPink | Pink | #FF1493 | rgb(255, 20, 147) | hsl(328, 100%, 54%) | Black text 5.77:1 |
| MediumVioletRed | Pink | #C71585 | rgb(199, 21, 133) | hsl(322, 81%, 43%) | White text 5.42:1 |
| PaleVioletRed | Pink | #DB7093 | rgb(219, 112, 147) | hsl(340, 60%, 65%) | Black text 6.75:1 |
| Coral | Orange | #FF7F50 | rgb(255, 127, 80) | hsl(16, 100%, 66%) | Black text 8.40:1 |
| Tomato | Orange | #FF6347 | rgb(255, 99, 71) | hsl(9, 100%, 64%) | Black text 7.12:1 |
| OrangeRed | Orange | #FF4500 | rgb(255, 69, 0) | hsl(16, 100%, 50%) | Black text 6.10:1 |
| DarkOrange | Orange | #FF8C00 | rgb(255, 140, 0) | hsl(33, 100%, 50%) | Black text 9.00:1 |
| Orange | Orange | #FFA500 | rgb(255, 165, 0) | hsl(39, 100%, 50%) | Black text 10.63:1 |
| Gold | Yellow | #FFD700 | rgb(255, 215, 0) | hsl(51, 100%, 50%) | Black text 14.97:1 |
| Yellow | Yellow | #FFFF00 | rgb(255, 255, 0) | hsl(60, 100%, 50%) | Black text 19.55:1 |
| LightYellow | Yellow | #FFFFE0 | rgb(255, 255, 224) | hsl(60, 100%, 94%) | Black text 20.63:1 |
| LemonChiffon | Yellow | #FFFACD | rgb(255, 250, 205) | hsl(54, 100%, 90%) | Black text 19.80:1 |
| LightGoldenrodYellow | Yellow | #FAFAD2 | rgb(250, 250, 210) | hsl(60, 80%, 90%) | Black text 19.66:1 |
| PapayaWhip | Yellow | #FFEFD5 | rgb(255, 239, 213) | hsl(37, 100%, 92%) | Black text 18.55:1 |
| Moccasin | Yellow | #FFE4B5 | rgb(255, 228, 181) | hsl(38, 100%, 85%) | Black text 17.01:1 |
| PeachPuff | Yellow | #FFDAB9 | rgb(255, 218, 185) | hsl(28, 100%, 86%) | Black text 15.98:1 |
| PaleGoldenrod | Yellow | #EEE8AA | rgb(238, 232, 170) | hsl(55, 67%, 80%) | Black text 16.75:1 |
| Khaki | Yellow | #F0E68C | rgb(240, 230, 140) | hsl(54, 77%, 75%) | Black text 16.40:1 |
| DarkKhaki | Yellow | #BDB76B | rgb(189, 183, 107) | hsl(56, 38%, 58%) | Black text 10.14:1 |
| Lavender | Purple | #E6E6FA | rgb(230, 230, 250) | hsl(240, 67%, 94%) | Black text 17.06:1 |
| Thistle | Purple | #D8BFD8 | rgb(216, 191, 216) | hsl(300, 24%, 80%) | Black text 12.36:1 |
| Plum | Purple | #DDA0DD | rgb(221, 160, 221) | hsl(300, 47%, 75%) | Black text 10.14:1 |
| Violet | Purple | #EE82EE | rgb(238, 130, 238) | hsl(300, 76%, 72%) | Black text 9.06:1 |
| Orchid | Purple | #DA70D6 | rgb(218, 112, 214) | hsl(302, 59%, 65%) | Black text 7.26:1 |
| Fuchsia | Purple | #FF00FF | rgb(255, 0, 255) | hsl(300, 100%, 50%) | Black text 6.69:1 |
| Magenta | Purple | #FF00FF | rgb(255, 0, 255) | hsl(300, 100%, 50%) | Black text 6.69:1 |
| MediumOrchid | Purple | #BA55D3 | rgb(186, 85, 211) | hsl(288, 59%, 58%) | Black text 5.32:1 |
| MediumPurple | Purple | #9370DB | rgb(147, 112, 219) | hsl(260, 60%, 65%) | Black text 5.58:1 |
| RebeccaPurple | Purple | #663399 | rgb(102, 51, 153) | hsl(270, 50%, 40%) | White text 8.40:1 |
| BlueViolet | Purple | #8A2BE2 | rgb(138, 43, 226) | hsl(271, 76%, 53%) | White text 5.95:1 |
| DarkViolet | Purple | #9400D3 | rgb(148, 0, 211) | hsl(282, 100%, 41%) | White text 6.56:1 |
| DarkOrchid | Purple | #9932CC | rgb(153, 50, 204) | hsl(280, 61%, 50%) | White text 5.70:1 |
| DarkMagenta | Purple | #8B008B | rgb(139, 0, 139) | hsl(300, 100%, 27%) | White text 8.49:1 |
| Purple | Purple | #800080 | rgb(128, 0, 128) | hsl(300, 100%, 25%) | White text 9.41:1 |
| Indigo | Purple | #4B0082 | rgb(75, 0, 130) | hsl(275, 100%, 25%) | White text 12.95:1 |
| SlateBlue | Purple | #6A5ACD | rgb(106, 90, 205) | hsl(248, 53%, 58%) | White text 5.30:1 |
| DarkSlateBlue | Purple | #483D8B | rgb(72, 61, 139) | hsl(248, 39%, 39%) | White text 9.06:1 |
| MediumSlateBlue | Purple | #7B68EE | rgb(123, 104, 238) | hsl(249, 80%, 67%) | Black text 5.05:1 |
| GreenYellow | Green | #ADFF2F | rgb(173, 255, 47) | hsl(84, 100%, 59%) | Black text 17.12:1 |
| Chartreuse | Green | #7FFF00 | rgb(127, 255, 0) | hsl(90, 100%, 50%) | Black text 16.20:1 |
| LawnGreen | Green | #7CFC00 | rgb(124, 252, 0) | hsl(90, 100%, 49%) | Black text 15.78:1 |
| Lime | Green | #00FF00 | rgb(0, 255, 0) | hsl(120, 100%, 50%) | Black text 15.30:1 |
| LimeGreen | Green | #32CD32 | rgb(50, 205, 50) | hsl(120, 61%, 50%) | Black text 9.91:1 |
| PaleGreen | Green | #98FB98 | rgb(152, 251, 152) | hsl(120, 93%, 79%) | Black text 16.58:1 |
| LightGreen | Green | #90EE90 | rgb(144, 238, 144) | hsl(120, 73%, 75%) | Black text 14.81:1 |
| MediumSpringGreen | Green | #00FA9A | rgb(0, 250, 154) | hsl(157, 100%, 49%) | Black text 15.14:1 |
| SpringGreen | Green | #00FF7F | rgb(0, 255, 127) | hsl(150, 100%, 50%) | Black text 15.61:1 |
| MediumSeaGreen | Green | #3CB371 | rgb(60, 179, 113) | hsl(147, 50%, 47%) | Black text 7.87:1 |
| SeaGreen | Green | #2E8B57 | rgb(46, 139, 87) | hsl(146, 50%, 36%) | Black text 4.94:1 |
| ForestGreen | Green | #228B22 | rgb(34, 139, 34) | hsl(120, 61%, 34%) | Black text 4.78:1 |
| Green | Green | #008000 | rgb(0, 128, 0) | hsl(120, 100%, 25%) | White text 5.13:1 |
| DarkGreen | Green | #006400 | rgb(0, 100, 0) | hsl(120, 100%, 20%) | White text 7.43:1 |
| YellowGreen | Green | #9ACD32 | rgb(154, 205, 50) | hsl(80, 61%, 50%) | Black text 11.15:1 |
| OliveDrab | Green | #6B8E23 | rgb(107, 142, 35) | hsl(80, 60%, 35%) | Black text 5.51:1 |
| Olive | Green | #808000 | rgb(128, 128, 0) | hsl(60, 100%, 25%) | Black text 5.00:1 |
| DarkOliveGreen | Green | #556B2F | rgb(85, 107, 47) | hsl(82, 39%, 30%) | White text 5.94:1 |
| MediumAquamarine | Green | #66CDAA | rgb(102, 205, 170) | hsl(160, 51%, 60%) | Black text 10.87:1 |
| DarkSeaGreen | Green | #8FBC8F | rgb(143, 188, 143) | hsl(120, 25%, 65%) | Black text 9.75:1 |
| LightSeaGreen | Green | #20B2AA | rgb(32, 178, 170) | hsl(177, 70%, 41%) | Black text 8.01:1 |
| DarkCyan | Green | #008B8B | rgb(0, 139, 139) | hsl(180, 100%, 27%) | Black text 5.06:1 |
| Teal | Green | #008080 | rgb(0, 128, 128) | hsl(180, 100%, 25%) | White text 4.77:1 |
| Aqua | Cyan | #00FFFF | rgb(0, 255, 255) | hsl(180, 100%, 50%) | Black text 16.74:1 |
| Cyan | Cyan | #00FFFF | rgb(0, 255, 255) | hsl(180, 100%, 50%) | Black text 16.74:1 |
| LightCyan | Cyan | #E0FFFF | rgb(224, 255, 255) | hsl(180, 100%, 94%) | Black text 19.91:1 |
| PaleTurquoise | Cyan | #AFEEEE | rgb(175, 238, 238) | hsl(180, 65%, 81%) | Black text 16.28:1 |
| Aquamarine | Cyan | #7FFFD4 | rgb(127, 255, 212) | hsl(160, 100%, 75%) | Black text 17.15:1 |
| Turquoise | Cyan | #40E0D0 | rgb(64, 224, 208) | hsl(174, 72%, 56%) | Black text 12.79:1 |
| MediumTurquoise | Cyan | #48D1CC | rgb(72, 209, 204) | hsl(178, 60%, 55%) | Black text 11.26:1 |
| DarkTurquoise | Cyan | #00CED1 | rgb(0, 206, 209) | hsl(181, 100%, 41%) | Black text 10.74:1 |
| CadetBlue | Cyan | #5F9EA0 | rgb(95, 158, 160) | hsl(182, 25%, 50%) | Black text 6.88:1 |
| SteelBlue | Blue | #4682B4 | rgb(70, 130, 180) | hsl(207, 44%, 49%) | Black text 5.11:1 |
| LightSteelBlue | Blue | #B0C4DE | rgb(176, 196, 222) | hsl(214, 41%, 78%) | Black text 11.79:1 |
| LightBlue | Blue | #ADD8E6 | rgb(173, 216, 230) | hsl(195, 53%, 79%) | Black text 13.74:1 |
| PowderBlue | Blue | #B0E0E6 | rgb(176, 224, 230) | hsl(187, 52%, 80%) | Black text 14.65:1 |
| LightSkyBlue | Blue | #87CEFA | rgb(135, 206, 250) | hsl(203, 92%, 75%) | Black text 12.23:1 |
| SkyBlue | Blue | #87CEEB | rgb(135, 206, 235) | hsl(197, 71%, 73%) | Black text 12.05:1 |
| CornflowerBlue | Blue | #6495ED | rgb(100, 149, 237) | hsl(219, 79%, 66%) | Black text 7.06:1 |
| DeepSkyBlue | Blue | #00BFFF | rgb(0, 191, 255) | hsl(195, 100%, 50%) | Black text 9.89:1 |
| DodgerBlue | Blue | #1E90FF | rgb(30, 144, 255) | hsl(210, 100%, 56%) | Black text 6.48:1 |
| RoyalBlue | Blue | #4169E1 | rgb(65, 105, 225) | hsl(225, 73%, 57%) | White text 4.84:1 |
| Blue | Blue | #0000FF | rgb(0, 0, 255) | hsl(240, 100%, 50%) | White text 8.59:1 |
| MediumBlue | Blue | #0000CD | rgb(0, 0, 205) | hsl(240, 100%, 40%) | White text 11.16:1 |
| DarkBlue | Blue | #00008B | rgb(0, 0, 139) | hsl(240, 100%, 27%) | White text 15.29:1 |
| Navy | Blue | #000080 | rgb(0, 0, 128) | hsl(240, 100%, 25%) | White text 16.00:1 |
| MidnightBlue | Blue | #191970 | rgb(25, 25, 112) | hsl(240, 64%, 27%) | White text 14.84:1 |
| Cornsilk | Brown | #FFF8DC | rgb(255, 248, 220) | hsl(48, 100%, 93%) | Black text 19.71:1 |
| BlanchedAlmond | Brown | #FFEBCD | rgb(255, 235, 205) | hsl(36, 100%, 90%) | Black text 18.01:1 |
| Bisque | Brown | #FFE4C4 | rgb(255, 228, 196) | hsl(33, 100%, 88%) | Black text 17.14:1 |
| NavajoWhite | Brown | #FFDEAD | rgb(255, 222, 173) | hsl(36, 100%, 84%) | Black text 16.30:1 |
| Wheat | Brown | #F5DEB3 | rgb(245, 222, 179) | hsl(39, 77%, 83%) | Black text 15.98:1 |
| BurlyWood | Brown | #DEB887 | rgb(222, 184, 135) | hsl(34, 57%, 70%) | Black text 11.31:1 |
| Tan | Brown | #D2B48C | rgb(210, 180, 140) | hsl(34, 44%, 69%) | Black text 10.64:1 |
| RosyBrown | Brown | #BC8F8F | rgb(188, 143, 143) | hsl(0, 25%, 65%) | Black text 7.46:1 |
| SandyBrown | Brown | #F4A460 | rgb(244, 164, 96) | hsl(28, 87%, 67%) | Black text 10.32:1 |
| Goldenrod | Brown | #DAA520 | rgb(218, 165, 32) | hsl(43, 74%, 49%) | Black text 9.38:1 |
| DarkGoldenrod | Brown | #B8860B | rgb(184, 134, 11) | hsl(43, 89%, 38%) | Black text 6.45:1 |
| Peru | Brown | #CD853F | rgb(205, 133, 63) | hsl(30, 59%, 53%) | Black text 7.02:1 |
| Chocolate | Brown | #D2691E | rgb(210, 105, 30) | hsl(25, 75%, 47%) | Black text 5.77:1 |
| SaddleBrown | Brown | #8B4513 | rgb(139, 69, 19) | hsl(25, 76%, 31%) | White text 7.09:1 |
| Sienna | Brown | #A0522D | rgb(160, 82, 45) | hsl(19, 56%, 40%) | White text 5.61:1 |
| Brown | Brown | #A52A2A | rgb(165, 42, 42) | hsl(0, 59%, 41%) | White text 7.08:1 |
| Maroon | Brown | #800000 | rgb(128, 0, 0) | hsl(0, 100%, 25%) | White text 10.94:1 |
| White | White | #FFFFFF | rgb(255, 255, 255) | hsl(0, 0%, 100%) | Black text 21.00:1 |
| Snow | White | #FFFAFA | rgb(255, 250, 250) | hsl(0, 100%, 99%) | Black text 20.30:1 |
| HoneyDew | White | #F0FFF0 | rgb(240, 255, 240) | hsl(120, 100%, 97%) | Black text 20.26:1 |
| MintCream | White | #F5FFFA | rgb(245, 255, 250) | hsl(150, 100%, 98%) | Black text 20.56:1 |
| Azure | White | #F0FFFF | rgb(240, 255, 255) | hsl(180, 100%, 97%) | Black text 20.45:1 |
| AliceBlue | White | #F0F8FF | rgb(240, 248, 255) | hsl(208, 100%, 97%) | Black text 19.57:1 |
| GhostWhite | White | #F8F8FF | rgb(248, 248, 255) | hsl(240, 100%, 99%) | Black text 19.86:1 |
| WhiteSmoke | White | #F5F5F5 | rgb(245, 245, 245) | hsl(0, 0%, 96%) | Black text 19.26:1 |
| SeaShell | White | #FFF5EE | rgb(255, 245, 238) | hsl(25, 100%, 97%) | Black text 19.54:1 |
| Beige | White | #F5F5DC | rgb(245, 245, 220) | hsl(60, 56%, 91%) | Black text 18.97:1 |
| OldLace | White | #FDF5E6 | rgb(253, 245, 230) | hsl(39, 85%, 95%) | Black text 19.38:1 |
| FloralWhite | White | #FFFAF0 | rgb(255, 250, 240) | hsl(40, 100%, 97%) | Black text 20.18:1 |
| Ivory | White | #FFFFF0 | rgb(255, 255, 240) | hsl(60, 100%, 97%) | Black text 20.81:1 |
| AntiqueWhite | White | #FAEBD7 | rgb(250, 235, 215) | hsl(34, 78%, 91%) | Black text 17.92:1 |
| Linen | White | #FAF0E6 | rgb(250, 240, 230) | hsl(30, 67%, 94%) | Black text 18.67:1 |
| LavenderBlush | White | #FFF0F5 | rgb(255, 240, 245) | hsl(340, 100%, 97%) | Black text 19.03:1 |
| MistyRose | White | #FFE4E1 | rgb(255, 228, 225) | hsl(6, 100%, 94%) | Black text 17.43:1 |
| Gainsboro | Gray | #DCDCDC | rgb(220, 220, 220) | hsl(0, 0%, 86%) | Black text 15.31:1 |
| LightGray | Gray | #D3D3D3 | rgb(211, 211, 211) | hsl(0, 0%, 83%) | Black text 14.02:1 |
| LightGrey | Gray | #D3D3D3 | rgb(211, 211, 211) | hsl(0, 0%, 83%) | Black text 14.02:1 |
| Silver | Gray | #C0C0C0 | rgb(192, 192, 192) | hsl(0, 0%, 75%) | Black text 11.54:1 |
| DarkGray | Gray | #A9A9A9 | rgb(169, 169, 169) | hsl(0, 0%, 66%) | Black text 8.93:1 |
| DarkGrey | Gray | #A9A9A9 | rgb(169, 169, 169) | hsl(0, 0%, 66%) | Black text 8.93:1 |
| Gray | Gray | #808080 | rgb(128, 128, 128) | hsl(0, 0%, 50%) | Black text 5.31:1 |
| Grey | Gray | #808080 | rgb(128, 128, 128) | hsl(0, 0%, 50%) | Black text 5.31:1 |
| DimGray | Gray | #696969 | rgb(105, 105, 105) | hsl(0, 0%, 41%) | White text 5.48:1 |
| DimGrey | Gray | #696969 | rgb(105, 105, 105) | hsl(0, 0%, 41%) | White text 5.48:1 |
| LightSlateGray | Gray | #778899 | rgb(119, 136, 153) | hsl(210, 14%, 53%) | Black text 5.76:1 |
| LightSlateGrey | Gray | #778899 | rgb(119, 136, 153) | hsl(210, 14%, 53%) | Black text 5.76:1 |
| SlateGray | Gray | #708090 | rgb(112, 128, 144) | hsl(210, 13%, 50%) | Black text 5.17:1 |
| SlateGrey | Gray | #708090 | rgb(112, 128, 144) | hsl(210, 13%, 50%) | Black text 5.17:1 |
| DarkSlateGray | Gray | #2F4F4F | rgb(47, 79, 79) | hsl(180, 25%, 25%) | White text 8.92:1 |
| DarkSlateGrey | Gray | #2F4F4F | rgb(47, 79, 79) | hsl(180, 25%, 25%) | White text 8.92:1 |
| Black | Gray | #000000 | rgb(0, 0, 0) | hsl(0, 0%, 0%) | White text 21.00:1 |
HTML Color Codes
HTML color codes for every color name a browser knows: all 148 CSS color names, grouped into red, pink, orange, yellow, purple, green, cyan, blue, brown, white and gray, each with its hex color value, RGB and HSL code and whether white or black text reads better on it. A second chart lists the 216 web-safe colors. Type or pick any color to get its codes, the nearest named colors and CSS and HTML lines ready to paste. It all runs in your browser.
How to find an HTML color code
- Browse
All namesfor the full hex color values chart, or open one family such asBlueorGreenfor its color names and shades.Web safeshows the 216-color palette (a drop-down on a phone). - Press a swatch to copy its code.
Swatches and Copy givechooses what is copied: the HEX code (#FF6347),rgb(255, 99, 71),hsl(9, 100%, 64%)or the CSS name (tomato).Hex lettersswitches between#FF0000and#ff0000. - Search the table under the swatches by name or by code (
slate,#FF6347,255), sort it by any column, and useCopy allorDownload(CSV or TXT) for every color of the open tab. - To find the name or code of a color you already have, type it into
Your colour(hex,rgb(),hsl(),oklch()or a name) or open the color picker. You get its HEX, RGB and HSL codes, the readable text color, the nearest web-safe color, the six nearest named colors andcolor:/background-color:lines and an HTML example to copy.
Example
Type #3b82f6 into Your colour. The codes, the closest named colors and the code to paste are:
#3b82f6HEX #3B82F6 RGB rgb(59, 130, 246) HSL hsl(217, 91%, 60%)
Readable text: Black text 5.70:1
Nearest web-safe: #3399FF
Nearest names: DodgerBlue #1E90FF (3.6), RoyalBlue #4169E1 (6.7), CornflowerBlue #6495ED (7.0)
color: #3B82F6;
background-color: #3B82F6;
border: 2px solid #3B82F6;
<p style="color: #3B82F6;">Coloured text</p>
<div style="background-color: #3B82F6; color: #000000;">Text on a coloured background</div>Details
- An HTML color code is a hex triplet:
#then two hex digits each for red, green and blue, from00(none) toFF(full).#FF0000is pure red,#000000black and#FFFFFFwhite. The same color can be written asrgb(255, 0, 0)orhsl(0, 100%, 50%), or by name asred; browsers treat all four the same, and letter case does not matter. - The named colors are the list in the CSS Color specification, used by HTML and CSS alike. Some colors have two names:
grayandgrey(and each of the slate and dim grays),aquaandcyan,fuchsiaandmagenta. Both spellings are listed, so the chart has 148 names for 139 distinct colors. The families are a guide for browsing; CSS itself does not group them. - Web-safe colors are the 216 colors whose red, green and blue are each
00,33,66,99,CCorFF. They date from 256-color screens, where other colors were dithered. Every screen today shows millions of colors, so you do not need them for a website; they are still handy as a small, evenly spread palette. The nearest web-safe color to any color rounds each channel to the closest of those six steps. - To color text in HTML, set the CSS
colorproperty:<p style="color: #1E90FF;">inline, orp { color: #1E90FF; }in a stylesheet. A background usesbackground-color. The old<font color="…">tag still works in browsers but is obsolete in HTML5. - The Readable text column compares the color with white and with black text and names the one with the higher contrast ratio (WCAG 2). 4.5:1 is the minimum for body text under WCAG AA and 3:1 for large text; check any other pair in the Contrast Checker.
- Nearest named colors are measured in OKLab, a color space built so equal distances look about equally different. A distance under about 2 is hard to tell apart. For
#3B82F6the closest names are DodgerBlue, RoyalBlue and CornflowerBlue, as in the example above.
Limits
- The chart covers the CSS named colors and the web-safe palette, not Pantone, RAL or paint-brand colors; those are proprietary lists and the conversions to them are approximate.
- A typed color with transparency (
rgba()or an 8-digit hex) is shown as the opaque color; the alpha is dropped from the codes. - A swatch shows the color as your screen renders it. Screens differ, so the same code can look a little different on another display or in print.
FAQ
What is the HTML color code for red?
Pure red is #FF0000, rgb(255, 0, 0) or simply red. Other named reds are crimson #DC143C, firebrick #B22222, darkred #8B0000, indianred #CD5C5C and salmon #FA8072; open the Red tab for all nine.
What is the hex code for black and white?
Black is #000000 and white is #FFFFFF. Near-whites such as snow #FFFAFA, whitesmoke #F5F5F5 and ghostwhite #F8F8FF are in the White tab; grays from gainsboro #DCDCDC to dimgray #696969 are in Gray.
How many color names does HTML have?
148 names in CSS Color Level 4, which HTML uses: the 147 of CSS3 plus rebeccapurple #663399, added in 2014. Nine colors have two spellings (seven gray / grey pairs, aqua and cyan, fuchsia and magenta), so there are 139 distinct colors.
How do I find the name of a color from its hex code?
Type the hex code into Your colour. If it is a CSS named color, its name shows; if not, the six closest named colors are listed with how far each is from yours.
How do I change the font color in HTML?
Use CSS: <span style="color: #FF6347;">text</span>, or a class in your stylesheet. Type the color into Your colour and the tool writes the color: and background-color: lines and an HTML example for you to copy.
Runs entirely in your browser. Nothing is uploaded.