#797F7E#797F7E
#797F7E is a mid, near-neutral grey. Relative luminance 0.207; OKLCH L 59.1% C 0.007 H 185.1°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).
Color values
| HEX | #797F7E |
|---|---|
| RGB | rgb(121, 127, 126) |
| HSL | hsl(170, 2%, 49%) |
| HSV | hsv(170, 5%, 50%) |
| CMYK | cmyk(4.7%, 0%, 0.8%, 50.2%) |
| CIE-LAB | lab(52.67, -2.43, -0.23) |
| CIE-LCH | lch(52.67, 2.44, 185.44°) |
| OKLab | oklab(59.11% -0.0073 -0.0006) |
| OKLCH | oklch(59.11% 0.007 185.1) |
| XYZ | xyz(19.2397, 20.7499, 22.7261) |
| Luminance | 0.2075 (WCAG relative) |
| Temperature | neutral |
| Family | grey |
Closest named colors
Medium Grey
#7D7F7C
ΔE00 2.14
Gray
#808080
ΔE00 3.49
Flint
#6F7A80
ΔE00 4.50
Steel Grey
#6F828A
ΔE00 6.04
Battleship Grey
#6B7C85
ΔE00 6.19
Pewter
#899397
ΔE00 7.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797F7E #7F797A
analogous
#797F7B #797F7E #797D7F
triadic
#797F7E #7E797F #7F7E79
tetradic
#797F7E #7B797F #7F797A #7D7F79
square
#797F7E #7B797F #7F797A #7D7F79
split-complementary
#797F7E #7F797D #7F7B79
monochromatic
#3D4040 #5B605F #797F7E #989D9C #B8BBBA
Accessibility & contrast
On white
4.08
#797F7E on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.15
#797F7E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797F7E
5.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797F7E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797F7E | 1.00 | 4.08 | 5.15 | 5.15 |
| #FFFFFF | 4.08 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7E7E7E
Deuteranopia (green-blind)
#7D7D7E
Tritanopia (blue-blind)
#787F7F
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #797f7e; /* rgb */ color: rgb(121, 127, 126); /* oklch */ color: oklch(59.1% 0.007 185.1);
Tailwind
colors: {
custom: {
50: '#9fa4a3',
500: '#797f7e',
950: '#000000',
},
}SCSS
$custom: #797f7e; $custom-light: #9fa4a3; $custom-dark: #000000;
JSON
{
"hex": "#797f7e",
"rgb": {
"r": 121,
"g": 127,
"b": 126
},
"hsl": {
"h": 170,
"s": 2.419,
"l": 48.627
},
"oklch": {
"l": 0.59111,
"c": 0.00732,
"h": 185.1
},
"luminance": 0.2075
}Semantic roles & 50–950 ramp
primary
#797F7E
secondary
#ABA8A9
accent
#7C84AC
background
#F9FAFA
surface
#F2F4F3
border
#CCCECD
text
#0E0F0F
muted
#7E7F7F