#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
RGBrgb(121, 127, 126)
HSLhsl(170, 2%, 49%)
HSVhsv(170, 5%, 50%)
CMYKcmyk(4.7%, 0%, 0.8%, 50.2%)
CIE-LABlab(52.67, -2.43, -0.23)
CIE-LCHlch(52.67, 2.44, 185.44°)
OKLaboklab(59.11% -0.0073 -0.0006)
OKLCHoklch(59.11% 0.007 185.1)
XYZxyz(19.2397, 20.7499, 22.7261)
Luminance0.2075 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

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
##797F7E1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.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

Preview Lab

Preview with #797F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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