#797D8A#797D8A

#797D8A is a mid, muted grey. Relative luminance 0.206; OKLCH L 59.1% C 0.020 H 272.1°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#797D8A
RGBrgb(121, 125, 138)
HSLhsl(226, 7%, 51%)
HSVhsv(226, 12%, 54%)
CMYKcmyk(12.3%, 9.4%, 0%, 45.9%)
CIE-LABlab(52.47, 1.29, -7.54)
CIE-LCHlch(52.47, 7.65, 279.69°)
OKLaboklab(59.07% 0.0008 -0.0203)
OKLCHoklch(59.07% 0.02 272.1)
XYZxyz(19.8052, 20.5669, 26.9662)
Luminance0.2057 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D8A #8A8679
analogous
#79858A #797D8A #7D798A
triadic
#797D8A #8A797D #7D8A79
tetradic
#797D8A #8A7985 #8A8679 #798A7D
square
#797D8A #8A7985 #8A8679 #798A7D
split-complementary
#797D8A #8A7D79 #858A79
monochromatic
#404249 #5C5F6A #797D8A #9A9DA7 #BABCC3

Accessibility & contrast

On white

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

On black

5.11
#797D8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D8A
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D8A#FFFFFF#000000##000000
##797D8A1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A7E8B
Deuteranopia (green-blind)
#787D8A
Tritanopia (blue-blind)
#757F81
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #797d8a;
/* rgb */ color: rgb(121, 125, 138);
/* oklch */ color: oklch(59.1% 0.020 272.1);
Tailwind
colors: {
  custom: {
    50: '#9fa2ac',
    500: '#797d8a',
    950: '#000000',
  },
}
SCSS
$custom: #797d8a;
$custom-light: #9fa2ac;
$custom-dark: #000000;
JSON
{
  "hex": "#797d8a",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 138
  },
  "hsl": {
    "h": 225.882,
    "s": 6.773,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59072,
    "c": 0.02033,
    "h": 272.1
  },
  "luminance": 0.20567
}

Semantic roles & 50–950 ramp

primary
#797D8A
secondary
#B3B1AC
accent
#A378B0
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0F10
muted
#7E7E7F

Preview Lab

Preview with #797D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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