Gray Hex Color



#808080
(128, 128, 128)

Gray (or 0x808080), RGB value is (128, 128, 128). This html color code is also a web safe color which is equal to 999999. Gray hex color red value is 128, green value is 128 and the blue value of its RGB is 128. Cylindrical-coordinate representations (also known as HSL) of color Gray hue: 0, saturation: 0 and the lightness value of Gray is 50.196078431373.

Color spaces of Gray

RGB 128128128
HSL00.00%50.20%
HSV50°
CMYK 0.000.000.00   0.50
XYZ20.517521.586123.5072
Yxy21.58610.31270.3290
CIELCh53.58500.0070296.8129
CIE-Lab53.58500.0032-0.0062

Gray Image


Base Numbers

BaseRedGreenBlue
Binary 10000000 10000000 10000000
Octal 200 200 200
Decimal 128 128 128
Hex 80 80 80

Shades of Gray

5 different shades of color.

Monochromatic of Gray

5 complementary shades of color.

Analogous of Gray

These colors are all close to each other on a color wheel.

Complementary of Gray

2 of these colors are a different shade of the base color. The other 2 are a weighted opposite of the base color.

Triad of Gray

These colors are all equally distanced from each other on a color wheel, 2 of which have an alternate shade.

Weighted Triad of Gray

These colors are all similarly distanced from each other on a color wheel, 2 of which have an alternate shade. These colors are all slightly closer to the base color than in a normal triad.

Tetrad of Gray

3 of these colors are all equally distanced from each other on a color wheel, plus 1 alternated shade for the base color and the 1 color that is opposite of the base color.

Weighted Tetrad of Gray

3 of these colors are all similarly distanced from each other on a color wheel, the base color has an alternate shade, and there is a weighted opposite color. These colors are all slightly closer to the base color than in a normal tetrad.

Compound of Gray

These colors use mathematical offsets that usually complement each other well, and can highlight the base color.

Rectangular Tetrad of Gray

4 of these colors form a rectangle on a color wheel, and 1 color is an alternate shade for the base color.

Gray CSS Color Codes

.mybgcolor {background-color:#808080; }
.myforecolor {color:#808080; }
.mybordercolor {border:3px solid #808080;}

Gray Text Font Color

<p style="color:#808080">Text here</p>

This sample text font color is #808080
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.


Gray Background Color

<div style="background-color:#808080">
Div content here</div>

This div background color is #808080


Gray Border Color

<div style="border:3px solid #808080">
Div here</div>

This div border color is #808080


Css3 Examples

.textShadowRgb {
  text-shadow: 4px 4px 2px rgba(128, 128, 128, 0.8); }
.textShadowHex {
  text-shadow: 4px 4px 2px #808080}; }
.divShadow {
  -moz-box-shadow: 1px 1px 3px 2px #808080;
  -webkit-box-shadow: 1px 1px 3px 2px #808080;
  box-shadow:         1px 1px 3px 2px #808080}; }

Text Shadow with RGB Values

<p style="text-shadow: 4px 4px 2px rgba(128, 128, 128, 0.8);">Text here</p>

This text has shadow with rgb values.


Text Shadow with Hex Values

<p style="text-shadow: 4px 4px 2px #808080">Text here</p>

This text has shadow with hex values.


Div Box Shadow

<div style="-moz-box-shadow: 1px 1px 3px 2px #808080;
  -webkit-box-shadow: 1px 1px 3px 2px #808080;
  box-shadow:         1px 1px 3px 2px #808080;">
Div content here</div>

This div box has shadow with color #808080