#797E7F#797E7F

#797E7F is a mid, near-neutral grey. Relative luminance 0.205; OKLCH L 58.9% C 0.006 H 211.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#797E7F
RGBrgb(121, 126, 127)
HSLhsl(190, 2%, 49%)
HSVhsv(190, 5%, 50%)
CMYKcmyk(4.7%, 0.8%, 0%, 50.2%)
CIE-LABlab(52.42, -1.66, -1.19)
CIE-LCHlch(52.42, 2.04, 215.73°)
OKLaboklab(58.92% -0.0053 -0.0032)
OKLCHoklch(58.92% 0.006 211.1)
XYZxyz(19.1760, 20.5188, 23.0248)
Luminance0.2052 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E7F #7F7A79
analogous
#797F7D #797E7F #797B7F
triadic
#797E7F #7F797E #7E7F79
tetradic
#797E7F #7D797F #7F7A79 #7B7F79
square
#797E7F #7D797F #7F7A79 #7B7F79
split-complementary
#797E7F #7F797B #7F7D79
monochromatic
#3D4040 #5B5F60 #797E7F #989C9D #B8BABB

Accessibility & contrast

On white

4.11
#797E7F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#797E7F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E7F
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E7F#FFFFFF#000000##000000
##797E7F1.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D7E7F
Deuteranopia (green-blind)
#7C7D7F
Tritanopia (blue-blind)
#777F7E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #797e7f;
/* rgb */ color: rgb(121, 126, 127);
/* oklch */ color: oklch(58.9% 0.006 211.1);
Tailwind
colors: {
  custom: {
    50: '#9fa3a4',
    500: '#797e7f',
    950: '#000000',
  },
}
SCSS
$custom: #797e7f;
$custom-light: #9fa3a4;
$custom-dark: #000000;
JSON
{
  "hex": "#797e7f",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 127
  },
  "hsl": {
    "h": 190,
    "s": 2.419,
    "l": 48.627
  },
  "oklch": {
    "l": 0.58919,
    "c": 0.0062,
    "h": 211.1
  },
  "luminance": 0.20519
}

Semantic roles & 50–950 ramp

primary
#797E7F
secondary
#ABA9A8
accent
#847CAC
background
#F9FAFA
surface
#F2F3F4
border
#CCCDCE
text
#0E0F0F
muted
#7E7F7F

Preview Lab

Preview with #797E7F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#797E7F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva