#797F8A#797F8A
#797F8A is a mid, near-neutral grey. Relative luminance 0.211; OKLCH L 59.5% C 0.018 H 262.7°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #797F8A |
|---|---|
| RGB | rgb(121, 127, 138) |
| HSL | hsl(219, 7%, 51%) |
| HSV | hsv(219, 12%, 54%) |
| CMYK | cmyk(12.3%, 8%, 0%, 45.9%) |
| CIE-LAB | lab(53.04, 0.13, -6.70) |
| CIE-LCH | lch(53.04, 6.71, 271.13°) |
| OKLab | oklab(59.51% -0.0023 -0.018) |
| OKLCH | oklch(59.51% 0.018 262.7) |
| XYZ | xyz(20.0610, 21.0784, 27.0515) |
| Luminance | 0.2108 (WCAG relative) |
| Temperature | neutral |
| Family | grey |
Closest named colors
Slate Gray
#708090
ΔE00 3.99
Steel
#738595
ΔE00 4.88
Flint
#6F7A80
ΔE00 4.90
Lightslategray
#778899
ΔE00 5.11
Battleship Grey
#6B7C85
ΔE00 5.76
Gray
#808080
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797F8A #8A8479
analogous
#79878A #797F8A #7B798A
triadic
#797F8A #8A797F #7F8A79
tetradic
#797F8A #8A7987 #8A8479 #798A7B
square
#797F8A #8A7987 #8A8479 #798A7B
split-complementary
#797F8A #8A7B79 #878A79
monochromatic
#404349 #5C616A #797F8A #9A9EA7 #BABDC3
Accessibility & contrast
On white
4.03
#797F8A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.22
#797F8A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797F8A
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797F8A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797F8A | 1.00 | 4.03 | 5.22 | 5.22 |
| #FFFFFF | 4.03 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.22 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.22 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7C7F8B
Deuteranopia (green-blind)
#7A7E8A
Tritanopia (blue-blind)
#758182
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #797f8a; /* rgb */ color: rgb(121, 127, 138); /* oklch */ color: oklch(59.5% 0.018 262.7);
Tailwind
colors: {
custom: {
50: '#9fa4ac',
500: '#797f8a',
950: '#000000',
},
}SCSS
$custom: #797f8a; $custom-light: #9fa4ac; $custom-dark: #000000;
JSON
{
"hex": "#797f8a",
"rgb": {
"r": 121,
"g": 127,
"b": 138
},
"hsl": {
"h": 218.824,
"s": 6.773,
"l": 50.784
},
"oklch": {
"l": 0.59514,
"c": 0.0182,
"h": 262.7
},
"luminance": 0.21079
}Semantic roles & 50–950 ramp
primary
#797F8A
secondary
#B3B1AC
accent
#9C78B0
background
#F9FAFA
surface
#F2F4F4
border
#CCCECE
text
#0E0F10
muted
#7E7F7F