#7E797E#7E797E
#7E797E is a mid, near-neutral grey. Relative luminance 0.196; OKLCH L 58.2% C 0.010 H 325.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #7E797E |
|---|---|
| RGB | rgb(126, 121, 126) |
| HSL | hsl(300, 2%, 48%) |
| HSV | hsv(300, 4%, 49%) |
| CMYK | cmyk(0%, 4%, 0%, 50.6%) |
| CIE-LAB | lab(51.40, 2.89, -2.05) |
| CIE-LCH | lch(51.40, 3.54, 324.65°) |
| OKLab | oklab(58.21% 0.0079 -0.0054) |
| OKLCH | oklch(58.21% 0.01 325.7) |
| XYZ | xyz(19.2069, 19.6168, 22.5092) |
| Luminance | 0.1962 (WCAG relative) |
| Temperature | neutral |
| Family | grey |
Closest named colors
Gray
#808080
ΔE00 4.83
Medium Grey
#7D7F7C
ΔE00 7.06
Dimgray
#696969
ΔE00 8.14
Flint
#6F7A80
ΔE00 8.57
Warm Grey
#978A84
ΔE00 9.19
Slate Gray
#708090
ΔE00 10.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E797E #797E79
analogous
#7B797E #7E797E #7E797B
triadic
#7E797E #7E7E79 #797E7E
tetradic
#7E797E #7E7B79 #797E79 #797B7E
square
#7E797E #7E7B79 #797E79 #797B7E
split-complementary
#7E797E #7B7E79 #797E7B
monochromatic
#403D40 #5F5B5F #7E797E #9C989C #BAB7BA
Accessibility & contrast
On white
4.27
#7E797E on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.92
#7E797E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E797E
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E797E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E797E | 1.00 | 4.27 | 4.92 | 4.92 |
| #FFFFFF | 4.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.92 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.92 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#797A7E
Deuteranopia (green-blind)
#7A7B7E
Tritanopia (blue-blind)
#7E797B
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #7e797e; /* rgb */ color: rgb(126, 121, 126); /* oklch */ color: oklch(58.2% 0.010 325.7);
Tailwind
colors: {
custom: {
50: '#a39fa3',
500: '#7e797e',
950: '#000000',
},
}SCSS
$custom: #7e797e; $custom-light: #a39fa3; $custom-dark: #000000;
JSON
{
"hex": "#7e797e",
"rgb": {
"r": 126,
"g": 121,
"b": 126
},
"hsl": {
"h": 300,
"s": 2.024,
"l": 48.431
},
"oklch": {
"l": 0.58213,
"c": 0.00961,
"h": 325.7
},
"luminance": 0.19617
}Semantic roles & 50–950 ramp
primary
#7E797E
secondary
#A8ABA8
accent
#AB7D7D
background
#FAF9FA
surface
#F3F2F3
border
#CDCCCD
text
#0F0E0F
muted
#7F7E7F