#797A8A#797A8A

#797A8A is a mid, muted grey. Relative luminance 0.198; OKLCH L 58.4% C 0.024 H 282.8°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#797A8A
RGBrgb(121, 122, 138)
HSLhsl(236, 7%, 51%)
HSVhsv(236, 12%, 54%)
CMYKcmyk(12.3%, 11.6%, 0%, 45.9%)
CIE-LABlab(51.63, 3.03, -8.80)
CIE-LCHlch(51.63, 9.31, 289.02°)
OKLaboklab(58.41% 0.0054 -0.0237)
OKLCHoklch(58.41% 0.024 282.8)
XYZxyz(19.4312, 19.8188, 26.8415)
Luminance0.1982 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A8A #8A8979
analogous
#79828A #797A8A #80798A
triadic
#797A8A #8A797A #7A8A79
tetradic
#797A8A #8A7982 #8A8979 #798A80
square
#797A8A #8A7982 #8A8979 #798A80
split-complementary
#797A8A #8A8079 #828A79
monochromatic
#404049 #5C5D6A #797A8A #9A9AA7 #BABBC3

Accessibility & contrast

On white

4.23
#797A8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#797A8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A8A
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A8A#FFFFFF#000000##000000
##797A8A1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#767C8B
Deuteranopia (green-blind)
#767B8A
Tritanopia (blue-blind)
#767D7F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #797a8a;
/* rgb */ color: rgb(121, 122, 138);
/* oklch */ color: oklch(58.4% 0.024 282.8);
Tailwind
colors: {
  custom: {
    50: '#9fa0ac',
    500: '#797a8a',
    950: '#000000',
  },
}
SCSS
$custom: #797a8a;
$custom-light: #9fa0ac;
$custom-dark: #000000;
JSON
{
  "hex": "#797a8a",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 138
  },
  "hsl": {
    "h": 236.471,
    "s": 6.773,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58414,
    "c": 0.02433,
    "h": 282.8
  },
  "luminance": 0.19819
}

Semantic roles & 50–950 ramp

primary
#797A8A
secondary
#B3B3AC
accent
#AD78B0
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0E10
muted
#7E7E7F

Preview Lab

Preview with #797A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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