Colors : color « Style Basics « HTML / CSS






Colors

  

RGB values specify a color via a Red, Green, Blue representation.

RGB Percentage is the same as RGB but uses percentages.

RGBA (RGB with Alpha channel [available in CSS 3]): The RGB palette is used with the addition of an alpha channel to specify transparency.

Hexadecimal: This enables you to specify a color by a special hexadecimal number.

Shorthand Hexadecimal: This is a shortened representation of hexadecimal numbers; it is limited to a special 216-color, web-safe palette.

   
  








Related examples in the same category

1.Hexadecimal Colors
2.background: lightblue
3.RGB Colors
4.RGB Colors with percentage
5.color: #333333
6.color: blue;
7.color:red
8.color:black; assigns the constant value black to the color property.
9.Use #fff for #ffffff
10.Change color with Javascript
11.CSS Color Chart
12.Browser-Safe Color Chart
13.The Sixteen Basic Colors
14.User-Interface Color Keywords
15.rgb color
16.rgb color with percentage