#797B8A#797B8A

#797B8A is a mid, muted grey. Relative luminance 0.201; OKLCH L 58.6% C 0.023 H 279.6°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#797B8A
RGBrgb(121, 123, 138)
HSLhsl(233, 7%, 51%)
HSVhsv(233, 12%, 54%)
CMYKcmyk(12.3%, 10.9%, 0%, 45.9%)
CIE-LABlab(51.91, 2.45, -8.38)
CIE-LCHlch(51.91, 8.73, 286.29°)
OKLaboklab(58.63% 0.0038 -0.0226)
OKLCHoklch(58.63% 0.023 279.6)
XYZxyz(19.5546, 20.0657, 26.8827)
Luminance0.2007 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B8A #8A8879
analogous
#79838A #797B8A #7F798A
triadic
#797B8A #8A797B #7B8A79
tetradic
#797B8A #8A7983 #8A8879 #798A7F
square
#797B8A #8A7983 #8A8879 #798A7F
split-complementary
#797B8A #8A7F79 #838A79
monochromatic
#404149 #5C5E6A #797B8A #9A9BA7 #BABBC3

Accessibility & contrast

On white

4.19
#797B8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#797B8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B8A
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B8A#FFFFFF#000000##000000
##797B8A1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#777C8B
Deuteranopia (green-blind)
#767B8A
Tritanopia (blue-blind)
#757E80
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #797b8a;
/* rgb */ color: rgb(121, 123, 138);
/* oklch */ color: oklch(58.6% 0.023 279.6);
Tailwind
colors: {
  custom: {
    50: '#9fa1ac',
    500: '#797b8a',
    950: '#000000',
  },
}
SCSS
$custom: #797b8a;
$custom-light: #9fa1ac;
$custom-dark: #000000;
JSON
{
  "hex": "#797b8a",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 138
  },
  "hsl": {
    "h": 232.941,
    "s": 6.773,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58632,
    "c": 0.02292,
    "h": 279.6
  },
  "luminance": 0.20066
}

Semantic roles & 50–950 ramp

primary
#797B8A
secondary
#B3B2AC
accent
#A978B0
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0E10
muted
#7E7E7F

Preview Lab

Preview with #797B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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