HTML color codes for gray - hexadecimal + RGB

Discover all HTML codes for the color gray - hexadecimal, rgb, hsl, hsv, and cmyk, as well as different combinations, schemes, temperatures, hues, and types of gray color.

#808080

códigos del color gray

Complementary color of gray:

The complementary color of a color is the opposite of it on the color wheel (chromatic circle)

#808080

Monochromatic scheme of the color gray

#242424
#3c3c3c
#565656
#727272
#8f8f8f
#afafaf
#cfcfcf
#f1f1f1

This scheme is based on the color gray and is composed of different hues, tones, and shades, both dark and light.

HTML and CSS codes for the color gray

formatcode
hex#808080
rgbrgb(128,128,128)
hslhsl(0,0%,51%)
cmykcmyk(0, 0, 0, 50)
hsvhsv(0, 0%, 51%)

What is the gray color in RGB format?

The gray color in RGB format is composed of (128 in the red channel), (128 in the green channel), and (128 in the blue channel).

What is the gray color in CMYK format?

It is composed of (0%) cyan, (0%) magenta, (0%) yellow, and (50%) black / key.

What is the composition of the gray color in HSL?

It is composed of (NaN°) hue, (0%) saturation, and (51%) lightness.

What is the gray color in HSV format?

The gray color in HSV format is composed of (NaN°) hue, (0%) saturation, and (51%) value.

Analogous scheme of the color gray

Analogous colors are obtained from the two closest colors within the color wheel.

#828282
#828282
#828282

Triadic scheme of the color gray

The triadic scheme is obtained from 3 colors equally spaced from each other within the color wheel

#808080
#808080
#808080

Tetradic scheme of the color gray

This color scheme is obtained by using two pairs of opposing colors on the color wheel in a rectangular shape.

#808080
#808080
#808080
#808080

Split complementary scheme of the color gray

This color scheme is obtained by using two pairs of opposing colors on the color wheel in a rectangular shape.

#808080
#808080
#808080

Tints of the color gray

Tints are obtained from the base color gray up to reaching white, finding in between shades of pastel colors.

#808080
#999999
#b3b3b3
#cccccc
#e6e6e6
#ffffff

Shades of the color gray

These shades are obtained from the base color gray up to reaching black.

#808080
#666666
#4d4d4d
#333333
#1a1a1a
#000000

Check the contrast of the color gray.

You can now validate the contrast relationship of the color gray, whether using it as a background color or as a text color.

Change the text color.
Contrast ratio: 3.95

Contrast ratio test of the color gray as a background

Change the background color
Contrast ratio: 3.95

Contrast ratio test of the color gray as text.

How to implement the color gray in HTML and CSS

Here are examples of code to use the gray on your web page. Remember that you can implement the color in HTML using color codes such as hexadecimal, RGB, or HSL, and also directly with the color name written in English (as long as it is natively supported by HTML).

Background color gray in HTML - CSS.

To set the background color, you can use inline styles or apply them in a CSS stylesheet

<div style="background:#808080;"> Color gray as the background of a div.</div>
/* Color gray as the background of the body tag with CSS. */
body {
background: #808080;
}

To set the text color gray in HTML - CSS.

To set the text color, you can use inline styles or apply them in a CSS stylesheet.

<p style="color:#808080;"> Color gray as the text color.</p>
p {
color:#808080 ;
}