Color Guide in CSS/HTML



With CSS, colors can be specified in different ways:

  • By color names

  • As RGB values

  • As hexadecimal values

  • As HSL values (CSS3)

  • As HWB values (CSS4)

  • With the currentcolor keyword



Color Name

In this, you can write the name of the color which you want.

Example,

  • Red,

  • Blue,

  • Pink,

  • Orange etc.,

There are some different colors other than normal colors which you can also use.

Example:

  • AliceBlue

  • AntiqueWhite

  • Aqua

  • Aquamarine

  • Azure

  • Beige

  • Bisque

  • Black

  • BlanchedAlmond

  • Blue

  • BlueViolet

  • Brown etc.,


Syntax:

background-color: red;
color: blue;