HTML Color Names

HTML coloration codes and names

HTML coloration codes are hexadecimal triplets representing the colors purple, inexperienced, and blue (#RRGGBB). For instance, within the shade pink, the color code is #FF0000, that is ‘255’ crimson, ‘0’ inexperienced, and ‘zero’ blue. There are sixteen,777,216 viable HTML colour codes, and all are visible on a 24-bit show.

Major hexadecimal shade codes

Below are some non-unusual color names and codes. With these colors, you may additionally use the color name. For instance, in HTML tags and CSS that use color codes, you can use “pink” rather than “#FF0000”.

What’s HEX Code?

HTML color codes are hexadecimal triplets representing the colors red, inexperienced, and blue (#RRGGBB).

For instance, in the color red, the color code is #FF0000, which is ‘255’ pink, ‘0’ inexperienced, and 0 blue. There are sixteen,777,216 viable HTML coloration codes, and all are seen on a 24-bit show.

The HTML color codes are hexadecimal code that represents the triplet pink, inexperienced, and blue. The code represents those hues in order #RRGGBB. For instance, in the given HEX code #FF0000, represents RGB values 255, zero, and zero respectively.

How to use HTML color names

Just like Hex color codes, HTML color names can be used with inline HTML styles or in a separate CSS stylesheet.

<!-- In your HTML document -->
  <h1 style="color:IndianRed">Indian Red Title Text</h1>
  <p style="color:SlateGray">Slate gray paragraph text</p>
/* In your .css stylesheet */
h1 { color: IndianRed; }
p { color: SlateGray; }

That’s all there is too it! If you want to learn more about using HTML color names and codes on your website

Internet fashionable colors Names

The arena extensive net Consortium (W3C) has indexed sixteen legitimate color names for HTML and CSS:

Aqua, black, blue, fuchsia, grey, green, lime, maroon, army, olive, purple, red, silver, teal, white, and yellow.

Remark be aware: exceptional browsers may additionally display exclusive shades for the equal shade call. “green” can be lighter in one browser than another. To acquire the equal result in all browsers, usually use the HEX notation.

Web safe shades?

Some years in the past, when computers supported max 256 distinctive hues, a listing of 216 “internet secure colorations” turned into suggested as a web fashionable, reserving forty constant gadget colorings.

The 216 pass-browser color palette become created to make sure that every computer would show the colors efficaciously while walking a 256 coloration palette.

Modern browsers support 140 named colors, which are listed below. Use them in your HTML and CSS by name, Hex color code or RGB value.HTML color names rule. Modern browsers support 140 HTML color names which we’ve listed here along with their Hex color codes and RGB values.