#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
RGBrgb(121, 127, 138)
HSLhsl(219, 7%, 51%)
HSVhsv(219, 12%, 54%)
CMYKcmyk(12.3%, 8%, 0%, 45.9%)
CIE-LABlab(53.04, 0.13, -6.70)
CIE-LCHlch(53.04, 6.71, 271.13°)
OKLaboklab(59.51% -0.0023 -0.018)
OKLCHoklch(59.51% 0.018 262.7)
XYZxyz(20.0610, 21.0784, 27.0515)
Luminance0.2108 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

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
##797F8A1.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.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

Preview Lab

Preview with #797F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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