Warning: Undefined array key "HTTP_REFERER" in /hosting/xtmci/inc/lib.inc.php on line 80
xtmci.com
xtmci

CSS3: The coding language for styling web pages

Sat May 9 6:28 pm EDT 2026
xtmci@atomicmail.io

Table of Contents

Specifying colors in CSS3

There are three ways for specifying colors in CSS3 syntax:

  • A hex value such as #FF0000 and #808080.
  • An RGB value such as rgb(255,0,0) and rgb(128,128,128).
  • A color keyword such as red and gray.

The CSS3 color code list

The list of most popular colors for web design is shown below:

KeywordHex valueRGB valueColor
black#000000rgb(0,0,0)
navy#000080rgb(0,0,128)
blue#0000ffrgb(0,0,255)
green#008000rgb(0,128,0)
teal#008080rgb(0,128,128)
lime#00ff00rgb(0,255,0)
cyan#00ffffrgb(0,255,255)
maroon#800000rgb(128,0,0)
purple#800080rgb(128,0,128)
olive#808000rgb(128,128,0)
gray#808080rgb(128,128,128)
red#ff0000rgb(255,0,0)
magenta#ff00ffrgb(255,0,255)
yellow#ffff00rgb(255,255,0)
white#ffffffrgb(255,255,255)