Explore the base color
Review HEX, RGB, HSL, and HSV for gray, then browse shades, tints, tones, and hues.
Gray color codes for #808080 — HEX, RGB, HSL, HSV, shades, named grays, and copy-ready CSS.
Loading tool…
Follow these steps for a clear answer.
Review HEX, RGB, HSL, and HSV for gray, then browse shades, tints, tones, and hues.
Click a generated strip or a CSS named gray shade to load codes and harmonies.
Copy HEX, rgb(), hsl(), or the keyword—and check contrast on white and black.
Core relationships used by this color tool.
Common picks with formula and result.
CSS keyword
Family neighbor
Background use
Harmony hint
Version 1.0.0
Shades/tints/tones adjust HSL L or S from base H; harmonies offset H on the hue circleGray (alias grey) structures interfaces. Ladder from lightgray to dimgray for elevation and hierarchy.
For full keyword search across all hues, use HTML color codes. For palette generation, try the color scheme generator or color wheel.
:root {
--gray: #808080;
--gray-soft: #d3d3d3;
--gray-ink: #555555;
}
.banner {
background-color: var(--gray);
color: #ffffff;
}
| Name | HEX | RGB | Feel |
|---|---|---|---|
| gray | #808080 | 128, 128, 128 | Base keyword |
| grey | #808080 | 128, 128, 128 | Named shade |
| darkgray | #A9A9A9 | 169, 169, 169 | Dark shade |
| lightgray | #D3D3D3 | 211, 211, 211 | Light tint |
| dimgray | #696969 | 105, 105, 105 | Dark shade |
| silver | #C0C0C0 | 192, 192, 192 | Named shade |
| slategray | #708090 | 112, 128, 144 | Named shade |
| gainsboro | #DCDCDC | 220, 220, 220 | Named shade |
| black | #000000 | 0, 0, 0 | Named shade |
| white | #FFFFFF | 255, 255, 255 | Named shade |
| darkgrey | #A9A9A9 | 169, 169, 169 | Dark shade |
| darkslategray | #2F4F4F | 47, 79, 79 | Dark shade |
Key distinctions behind the tool.
The CSS named color gray is #808080, equal to rgb(128, 128, 128) and hsl(0°, 0%, 50%).
Gray/grey is mid #808080. Silver is lighter and often used for borders and disabled states.
Any brand hue. Gray is the backbone of UI chrome, borders, and secondary text. Always check text contrast.
Mid gray (#808080) on white is often below AA for small text—use darker grays (#555–#333) for body copy.
Use color: gray;, color: #808080;, or color: rgb(128, 128, 128); on any property that accepts a <color> value, including background-color and border-color.