#797C8A#797C8A

#797C8A is a mid, muted grey. Relative luminance 0.203; OKLCH L 58.9% C 0.022 H 276.1°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#797C8A
RGBrgb(121, 124, 138)
HSLhsl(229, 7%, 51%)
HSVhsv(229, 12%, 54%)
CMYKcmyk(12.3%, 10.1%, 0%, 45.9%)
CIE-LABlab(52.19, 1.87, -7.96)
CIE-LCHlch(52.19, 8.18, 283.21°)
OKLaboklab(58.85% 0.0023 -0.0215)
OKLCHoklch(58.85% 0.022 276.1)
XYZxyz(19.6793, 20.3150, 26.9242)
Luminance0.2031 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C8A #8A8779
analogous
#79848A #797C8A #7E798A
triadic
#797C8A #8A797C #7C8A79
tetradic
#797C8A #8A7984 #8A8779 #798A7E
square
#797C8A #8A7984 #8A8779 #798A7E
split-complementary
#797C8A #8A7E79 #848A79
monochromatic
#404149 #5C5F6A #797C8A #9A9CA7 #BABCC3

Accessibility & contrast

On white

4.15
#797C8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#797C8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C8A
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C8A#FFFFFF#000000##000000
##797C8A1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#787D8B
Deuteranopia (green-blind)
#777C8A
Tritanopia (blue-blind)
#757E80
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #797c8a;
/* rgb */ color: rgb(121, 124, 138);
/* oklch */ color: oklch(58.9% 0.022 276.1);
Tailwind
colors: {
  custom: {
    50: '#9fa1ac',
    500: '#797c8a',
    950: '#000000',
  },
}
SCSS
$custom: #797c8a;
$custom-light: #9fa1ac;
$custom-dark: #000000;
JSON
{
  "hex": "#797c8a",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 138
  },
  "hsl": {
    "h": 229.412,
    "s": 6.773,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58852,
    "c": 0.02158,
    "h": 276.1
  },
  "luminance": 0.20315
}

Semantic roles & 50–950 ramp

primary
#797C8A
secondary
#B3B2AC
accent
#A678B0
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0F10
muted
#7E7E7F

Preview Lab

Preview with #797C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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