WordGPT

Gray color (#808080)

#808080 (Gray) is a gray colour. It is rgb(128, 128, 128) in RGB and hsl(0, 0%, 50%) in HSL. Text in black reads better on it: the contrast is 5.32:1 against black and 3.95:1 against white.

#808080
Gray: #808080
Complementary#808080#808080Analogous#808080#808080#808080Triadic#808080#808080#808080Tetradic (square)#808080#808080#808080#808080Split complementary#808080#808080#808080
Complementary, analogous, triadic, tetradic and split-complementary palettes made from this colour
1515152b2b2b4040405555556b6b6b808080959595aaaaaac0c0c0d5d5d5eaeaea
From dark shades (left, mixed with black) to light tints (right, mixed with white)

How to work it out

  1. 1

    A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).

    \mathrm{#808080}:\quad R=\mathrm{80}_{16}=128,\ G=\mathrm{80}_{16}=128,\ B=\mathrm{80}_{16}=128
  2. 2

    HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.

    H=0∘,S=0%,L=50%H=0^\circ,\quad S=0\%,\quad L=50\%
  3. 3

    The complementary colour sits opposite on the wheel: add 180° to the hue.

    0^\circ + 180^\circ = 180^\circ ;\Rightarrow; \mathrm{#808080}
  4. 4

    Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).

    contrast=L1+0.05L2+0.05=3.95:1 (on white)\text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 3.95:1\ \text{(on white)}
LaTeX source of the formulas on this page
\[ \mathrm{#808080} = \mathrm{rgb}(128, 128, 128) \]
\[ \mathrm{#808080}:\quad R=\mathrm{80}_{16}=128,\ G=\mathrm{80}_{16}=128,\ B=\mathrm{80}_{16}=128 \]
\[ H=0^\circ,\quad S=0\%,\quad L=50\% \]
\[ 0^\circ + 180^\circ = 180^\circ ;\Rightarrow; \mathrm{#808080} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 3.95:1\ \text{(on white)} \]

Gray in every colour format

FormatValue
HEX#808080
RGBrgb(128, 128, 128)
RGB (percent)rgb(50.2%, 50.2%, 50.2%)
HSLhsl(0, 0%, 50%)
HSV / HSBhsv(0, 0%, 50%)
CMYKcmyk(0%, 0%, 0%, 50%)
Decimal8421504
Descriptiongray
CSS namegray

Text contrast (WCAG)

Background of this colour with…ContrastAA normal (4.5)AA large (3)AAA normal (7)AAA large (4.5)
White text3.95:1failpassfailfail
Black text5.32:1passpassfailpass

Shades and tints

KindHex codes (darkest to lightest)
Shades (mixed with black)#151515 #2B2B2B #404040 #555555 #6B6B6B
This colour#808080
Tints (mixed with white)#959595 #AAAAAA #C0C0C0 #D5D5D5 #EAEAEA

How it looks with colour blindness

TypeHexDistance from the original
Protanopia#8080800
Deuteranopia#8080800
Tritanopia#8080800
Grayscale#808080-

Nearest named colours

NameHex
Dim gray#696969
Slate gray#708090
Light slate gray#778899
Dark gray#A9A9A9

Questions

What is the RGB value of #808080?

rgb(128, 128, 128): red 128, green 128, blue 128.

What is the HSL value of #808080?

hsl(0, 0%, 50%): a hue of 0°, 0% saturation and 50% lightness.

What is the complementary colour of #808080?

#808080, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #7F7F7F.

Should I use white or black text on #808080?

Black. White gives 3.95:1 and black 5.32:1; the better one passes WCAG AA for normal text.

What is the CMYK value of #808080?

cmyk(0%, 0%, 0%, 50%). This is a simple formula conversion; printed colours depend on the printer profile.

Is #808080 a named colour?

Yes: it is the CSS colour name "gray".

Matching colours

A little darker, a little lighter

Make a palette

    Gray (#808080): color code, RGB, HSL, shades and palettes | WordGPT