#797271#797271
#797271 is a mid, near-neutral grey. Relative luminance 0.173; OKLCH L 55.8% C 0.009 H 27.3°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #797271 |
|---|---|
| RGB | rgb(121, 114, 113) |
| HSL | hsl(8, 3%, 46%) |
| HSV | hsv(8, 7%, 47%) |
| CMYK | cmyk(0%, 5.8%, 6.6%, 52.5%) |
| CIE-LAB | lab(48.63, 2.50, 1.52) |
| CIE-LCH | lch(48.63, 2.93, 31.26°) |
| OKLab | oklab(55.81% 0.0079 0.0041) |
| OKLCH | oklch(55.81% 0.009 27.3) |
| XYZ | xyz(16.8828, 17.2920, 18.0679) |
| Luminance | 0.1729 (WCAG relative) |
| Temperature | neutral |
| Family | grey |
Closest named colors
Dimgray
#696969
ΔE00 5.52
Gray
#808080
ΔE00 6.18
Medium Grey
#7D7F7C
ΔE00 7.04
Taupe
#8B7D6B
ΔE00 9.44
Flint
#6F7A80
ΔE00 9.73
Warm Grey
#978A84
ΔE00 10.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797271 #717879
analogous
#797174 #797271 #797671
triadic
#797271 #717972 #727179
tetradic
#797271 #747971 #717879 #767179
square
#797271 #747971 #717879 #767179
split-complementary
#797271 #717976 #717479
monochromatic
#3A3636 #595453 #797271 #979190 #B5B0B0
Accessibility & contrast
On white
4.71
#797271 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.46
#797271 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #797271
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797271 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##797271 | 1.00 | 4.71 | 4.46 | 4.71 |
| #FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#737371
Deuteranopia (green-blind)
#757471
Tritanopia (blue-blind)
#7B7172
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #797271; /* rgb */ color: rgb(121, 114, 113); /* oklch */ color: oklch(55.8% 0.009 27.3);
Tailwind
colors: {
custom: {
50: '#9f9a99',
500: '#797271',
950: '#000000',
},
}SCSS
$custom: #797271; $custom-light: #9f9a99; $custom-dark: #000000;
JSON
{
"hex": "#797271",
"rgb": {
"r": 121,
"g": 114,
"b": 113
},
"hsl": {
"h": 7.5,
"s": 3.419,
"l": 45.882
},
"oklch": {
"l": 0.55807,
"c": 0.00884,
"h": 27.3
},
"luminance": 0.17292
}Semantic roles & 50–950 ramp
primary
#797271
secondary
#A1A5A5
accent
#A6AD7B
background
#F9F9F9
surface
#F2F2F2
border
#CCCCCC
text
#0E0E0E
muted
#7E7E7E