HTML (Hypertext Markup Language) color codes and names are used to specify colors for web pages and other digital documents. Here are some commonly used HTML color codes and names:
HTML Color Codes:
- Hexadecimal format: #RRGGBB, where RR (red), GG (green), and BB (blue) are two-digit hexadecimal values that range from 00 to FF. For example, #FF0000 represents the color red.
- RGB format: rgb(red, green, blue), where red, green, and blue are values between 0 and 255. For example, rgb(255, 0, 0) represents the color red.
- RGBA format: rgba(red, green, blue, alpha), where alpha is a value between 0 (transparent) and 1 (opaque). For example, rgba(255, 0, 0, 0.5) represents the color red with 50% opacity.
HTML Color Names:
- There are 147 predefined color names that can be used in HTML and CSS. Some examples include:
- Red (#FF0000)
- Green (#00FF00)
- Blue (#0000FF)
- Black (#000000)
- White (#FFFFFF)
- Gray (#808080)
In addition to these predefined color codes and names, custom colors can be created using either the hexadecimal or RGB formats.
Here are the 147 HTML color names, sorted alphabetically:
- AliceBlue
- AntiqueWhite
- Aqua
- Aquamarine
- Azure
- Beige
- Bisque
- Black
- BlanchedAlmond
- Blue
- BlueViolet
- Brown
- BurlyWood
- CadetBlue
- Chartreuse
- Chocolate
- Coral
- CornflowerBlue
- Cornsilk
- Crimson
- Cyan
- DarkBlue
- DarkCyan
- DarkGoldenRod
- DarkGray
- DarkGrey
- DarkGreen
- DarkKhaki
- DarkMagenta
- DarkOliveGreen
- DarkOrange
- DarkOrchid
- DarkRed
- DarkSalmon
- DarkSeaGreen
- DarkSlateBlue
- DarkSlateGray
- DarkSlateGrey
- DarkTurquoise
- DarkViolet
- DeepPink
- DeepSkyBlue
- DimGray
- DimGrey
- DodgerBlue
- FireBrick
- FloralWhite
- ForestGreen
- Fuchsia
- Gainsboro
- GhostWhite
- Gold
- GoldenRod
- Gray
- Grey
- Green
- GreenYellow
- HoneyDew
- HotPink
- IndianRed
- Indigo
- Ivory
- Khaki
- Lavender
- LavenderBlush
- LawnGreen
- LemonChiffon
- LightBlue
- LightCoral
- LightCyan
- LightGoldenRodYellow
- LightGray
- LightGrey
- LightGreen
- LightPink
- LightSalmon
- LightSeaGreen
- LightSkyBlue
- LightSlateGray
- LightSlateGrey
- LightSteelBlue
- LightYellow
- Lime
- LimeGreen
- Linen
- Magenta
- Maroon
- MediumAquaMarine
- MediumBlue
- MediumOrchid
- MediumPurple
- MediumSeaGreen
- MediumSlateBlue
- MediumSpringGreen
- MediumTurquoise
- MediumVioletRed
- MidnightBlue
- MintCream
- MistyRose
- Moccasin
- NavajoWhite
- Navy
- OldLace
- Olive
- OliveDrab
- Orange
- OrangeRed
- Orchid
- PaleGoldenRod
- PaleGreen
- PaleTurquoise
- PaleVioletRed
- PapayaWhip
- PeachPuff
- Peru
- Pink
- Plum
- PowderBlue
- Purple
- RebeccaPurple
- Red
- RosyBrown
- RoyalBlue
- SaddleBrown
- Salmon
- SandyBrown
- SeaGreen
- SeaShell
- Sienna
- Silver
- SkyBlue
- SlateBlue
- SlateGray
- SlateGrey
- Snow
- SpringGreen
- SteelBlue
- Tan
- Teal
- Thistle
- Tomato
- Turquoise
- Violet
- Wheat
- White
- WhiteSmoke
- Yellow
- YellowGreen
I hope that helps!