#8A797E#8A797E
#8A797E is a mid, muted grey. Relative luminance 0.206; OKLCH L 59.3% C 0.022 H 358.1°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #8A797E |
|---|---|
| RGB | rgb(138, 121, 126) |
| HSL | hsl(342, 7%, 51%) |
| HSV | hsv(342, 12%, 54%) |
| CMYK | cmyk(0%, 12.3%, 8.7%, 45.9%) |
| CIE-LAB | lab(52.49, 7.45, -0.32) |
| CIE-LCH | lch(52.49, 7.46, 357.53°) |
| OKLab | oklab(59.33% 0.0221 -0.0007) |
| OKLCH | oklch(59.33% 0.022 358.1) |
| XYZ | xyz(21.0842, 20.5848, 22.5972) |
| Luminance | 0.2058 (WCAG relative) |
| Temperature | neutral |
| Family | grey |
Closest named colors
Purpley Grey
#947E94
ΔE00 7.69
Reddish Grey
#997570
ΔE00 7.83
Purple Grey
#866F85
ΔE00 7.92
Warm Grey
#978A84
ΔE00 8.52
Gray
#808080
ΔE00 8.99
Purplish Grey
#7A687F
ΔE00 9.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A797E #798A85
analogous
#8A7986 #8A797E #8A7C79
triadic
#8A797E #7E8A79 #797E8A
tetradic
#8A797E #868A79 #798A85 #7C798A
square
#8A797E #868A79 #798A85 #7C798A
split-complementary
#8A797E #798A7C #79868A
monochromatic
#494042 #6A5C60 #8A797E #A79A9D #C3BABD
Accessibility & contrast
On white
4.10
#8A797E on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.12
#8A797E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A797E
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A797E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A797E | 1.00 | 4.10 | 5.12 | 5.12 |
| #FFFFFF | 4.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.12 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.12 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7B7C7E
Deuteranopia (green-blind)
#7E7E7E
Tritanopia (blue-blind)
#8D787B
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #8a797e; /* rgb */ color: rgb(138, 121, 126); /* oklch */ color: oklch(59.3% 0.022 358.1);
Tailwind
colors: {
custom: {
50: '#ac9fa3',
500: '#8a797e',
950: '#000000',
},
}SCSS
$custom: #8a797e; $custom-light: #ac9fa3; $custom-dark: #000000;
JSON
{
"hex": "#8a797e",
"rgb": {
"r": 138,
"g": 121,
"b": 126
},
"hsl": {
"h": 342.353,
"s": 6.773,
"l": 50.784
},
"oklch": {
"l": 0.59328,
"c": 0.02214,
"h": 358.1
},
"luminance": 0.20584
}Semantic roles & 50–950 ramp
primary
#8A797E
secondary
#ACB3B1
accent
#B09F78
background
#FAF9FA
surface
#F4F2F3
border
#CECCCD
text
#100E0F
muted
#7F7E7F