#8A787E#8A787E
#8A787E is a mid, muted grey. Relative luminance 0.203; OKLCH L 59.1% C 0.024 H 355.7°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).
Color values
| HEX | #8A787E |
|---|---|
| RGB | rgb(138, 120, 126) |
| HSL | hsl(340, 7%, 51%) |
| HSV | hsv(340, 13%, 54%) |
| CMYK | cmyk(0%, 13%, 8.7%, 45.9%) |
| CIE-LAB | lab(52.22, 8.03, -0.72) |
| CIE-LCH | lch(52.22, 8.06, 354.91°) |
| OKLab | oklab(59.12% 0.0238 -0.0018) |
| OKLCH | oklch(59.12% 0.024 355.7) |
| XYZ | xyz(20.9633, 20.3430, 22.5569) |
| Luminance | 0.2034 (WCAG relative) |
| Temperature | neutral |
| Family | grey |
Closest named colors
Purpley Grey
#947E94
ΔE00 7.28
Purple Grey
#866F85
ΔE00 7.28
Reddish Grey
#997570
ΔE00 7.78
Warm Grey
#978A84
ΔE00 9.17
Purplish Grey
#7A687F
ΔE00 9.19
Gray
#808080
ΔE00 9.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A787E #788A84
analogous
#8A7887 #8A787E #8A7B78
triadic
#8A787E #7E8A78 #787E8A
tetradic
#8A787E #878A78 #788A84 #7B788A
square
#8A787E #878A78 #788A84 #7B788A
split-complementary
#8A787E #788A7B #78878A
monochromatic
#493F42 #695B60 #8A787E #A6999D #C3BABD
Accessibility & contrast
On white
4.14
#8A787E on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.07
#8A787E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A787E
5.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A787E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A787E | 1.00 | 4.14 | 5.07 | 5.07 |
| #FFFFFF | 4.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.07 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.07 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7A7B7E
Deuteranopia (green-blind)
#7E7E7E
Tritanopia (blue-blind)
#8D777A
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #8a787e; /* rgb */ color: rgb(138, 120, 126); /* oklch */ color: oklch(59.1% 0.024 355.7);
Tailwind
colors: {
custom: {
50: '#ac9fa3',
500: '#8a787e',
950: '#000000',
},
}SCSS
$custom: #8a787e; $custom-light: #ac9fa3; $custom-dark: #000000;
JSON
{
"hex": "#8a787e",
"rgb": {
"r": 138,
"g": 120,
"b": 126
},
"hsl": {
"h": 340,
"s": 7.143,
"l": 50.588
},
"oklch": {
"l": 0.59118,
"c": 0.02384,
"h": 355.7
},
"luminance": 0.20343
}Semantic roles & 50–950 ramp
primary
#8A787E
secondary
#ABB3B0
accent
#B09D78
background
#FAF9FA
surface
#F4F2F3
border
#CECCCD
text
#100E0F
muted
#7F7E7F