#797C8B#797C8B

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

Color values

HEX#797C8B
RGBrgb(121, 124, 139)
HSLhsl(230, 7%, 51%)
HSVhsv(230, 13%, 55%)
CMYKcmyk(12.9%, 10.8%, 0%, 45.5%)
CIE-LABlab(52.22, 2.09, -8.50)
CIE-LCHlch(52.22, 8.75, 283.83°)
OKLaboklab(58.89% 0.0027 -0.0229)
OKLCHoklch(58.89% 0.023 276.7)
XYZxyz(19.7520, 20.3441, 27.3073)
Luminance0.2034 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C8B #8B8879
analogous
#79858B #797C8B #7F798B
triadic
#797C8B #8B797C #7C8B79
tetradic
#797C8B #8B7985 #8B8879 #798B7F
square
#797C8B #8B7985 #8B8879 #798B7F
split-complementary
#797C8B #8B7F79 #858B79
monochromatic
#40414A #5C5F6B #797C8B #9A9CA7 #BBBCC4

Accessibility & contrast

On white

4.14
#797C8B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#797C8B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C8B
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C8B#FFFFFF#000000##000000
##797C8B1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#787D8C
Deuteranopia (green-blind)
#777C8B
Tritanopia (blue-blind)
#757F81
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #797c8b;
/* rgb */ color: rgb(121, 124, 139);
/* oklch */ color: oklch(58.9% 0.023 276.7);
Tailwind
colors: {
  custom: {
    50: '#9fa1ac',
    500: '#797c8b',
    950: '#000000',
  },
}
SCSS
$custom: #797c8b;
$custom-light: #9fa1ac;
$custom-dark: #000000;
JSON
{
  "hex": "#797c8b",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 139
  },
  "hsl": {
    "h": 230,
    "s": 7.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58888,
    "c": 0.02309,
    "h": 276.7
  },
  "luminance": 0.20344
}

Semantic roles & 50–950 ramp

primary
#797C8B
secondary
#B4B3AC
accent
#A778B0
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0F10
muted
#7E7E7F

Preview Lab

Preview with #797C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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