Different HTML Color Codes
Different HTML Color Codes
Colors can be denoted by using their hex value or their name. HTML has support for the most
common colors; in this article, I will share with you 140 names and hex values of these colors. One
thing to keep in mind is that you don’t have to limit yourself to these colors; you can use any color
picker tool to find the Hex value of any color you want and use it on your web page.
Now that you know what HTML Color Names are and how you can use them in your pages, here is a
background; these colors have the best readability. One interesting thing to keep in mind is that
modern phones with OLED displays done need any battery power to display Black color; if your
audience is going to be on mobile, it is a wise idea to use Black as a background color and white or
Code Color
#000000 Black
#0C090A Night
#2C3539 Gunmetal
#2B1B17 Midnight
#34282C Charcoal
#3B3131 Oil
#413839 Black Cat
#3D3C3A Iridium
#736F6E Gray
#837E7C Granite
#E5E4E2 Platinum
should avoid using blue for all text on a page as visitors can mistake it for hyperlinks.
#56A5EC Iceberg
#EBF4FA Water
#F0F8FF AliceBlue
#F0FFFF Azure
#7FFFD4 Aquamarine
#43C6DB Turquoise
#46C7C7 Jellyfish
background.
#008080 Teal
#00FF00 Green
#8AFB17 Chartreuse
#EDDA74 Goldenrod
#FFFF00 Yellow
#FFFFC2 Parchment
#FFFFCC Cream
#FFF8DC Cornsilk
#F5F5DC Beige
#FBF6D9 Blonde
#FAEBD7 AntiqueWhite
#F7E7CE Champagne
#FFEBCD BlanchedAlmond
#F3E5AB Vanilla
#FFE5B4 Peach
#FFDB58 Mustard
#FBB917 Saffron
#FBB117 Beer
#FFA62F Cantaloupe
#C2B280 Sand
#C68E17 Caramel
#B5A642 Brass
#ADA96E Khaki
#CD7F32 Bronze
#C58917 Cinnamon
#966F33 Wood
#827839 Moccasin
#786D5F Sandstone
#493D26 Mocha
#483C32 Taupe
#6F4E37 Coffee
#7F462C Sepia
of enthusiasm and warmth without being too tacky.6. Orange HTML Colors
#C36241 Rust
#C35817 Red Fox
#C85A17 Chocolate
#CC6600 Sedona
#FF7F50 Coral
#E78A61 Tangerine
#FF2400 Scarlet
#DC381F Grapefruit
#C04000 Mahogany
#9F000F Cranberry
#8C001A Burgundy
#954535 Chestnut
#8A4117 Sienna
#7E3817 Sangria
7. Red HTML Color Codes
For some browsers, Red underlined text is used as visited links, you should avoid using it to not
#E8ADAA Rose
#FAAFBE Pink
#FF00FF Magenta
#B93B8F Plum
from not being user friendly, you could get an SEO penalty for your site thus, always use white and
#4B0082 Indigo
#614051 Eggplant
#5E5A80 Grape
#8D38C9 Violet
#8E35EF Purple
#E238EC Crimson
#E0B0FF Mauve
#D2B9D3 Thistle
#E9CFEC Periwinkle
#FDEEF4 Pearl
#FFF5EE SeaShell
#FFFFFF White
Example #1
Let us consider a general example showing how example color name in HTML is going to be used:
HTML code:
<!DOCTYPE html>
<html>
<body>
<h1 style="color:Violet;">About Life.....</h1>
<h4 >Creativity Is Intelligence Having Fun </h4>
<p style="background-color: #00FFFF; color:blue">
You Learn More From Failure Than From Success. Don’t Let It Stop You. Failure Builds Character.
If You Are Working On Something That You Really Care About, You Don’t Have To Be Pushed.
</p>
</body>
</html>
Output: