#797D7E#797D7E

#797D7E is a mid, near-neutral grey. Relative luminance 0.202; OKLCH L 58.7% C 0.005 H 214.3°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#797D7E
RGBrgb(121, 125, 126)
HSLhsl(192, 2%, 48%)
HSVhsv(192, 4%, 49%)
CMYKcmyk(4%, 0.8%, 0%, 50.6%)
CIE-LABlab(52.11, -1.29, -1.06)
CIE-LCHlch(52.11, 1.67, 219.58°)
OKLaboklab(58.66% -0.0042 -0.0028)
OKLCHoklch(58.66% 0.005 214.3)
XYZxyz(18.9840, 20.2384, 22.6409)
Luminance0.2024 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D7E #7E7A79
analogous
#797E7C #797D7E #797A7E
triadic
#797D7E #7E797D #7D7E79
tetradic
#797D7E #7C797E #7E7A79 #7A7E79
square
#797D7E #7C797E #7E7A79 #7A7E79
split-complementary
#797D7E #7E797A #7E7C79
monochromatic
#3D3F40 #5B5E5F #797D7E #989B9C #B7BABA

Accessibility & contrast

On white

4.16
#797D7E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#797D7E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D7E
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D7E#FFFFFF#000000##000000
##797D7E1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C7D7E
Deuteranopia (green-blind)
#7B7C7E
Tritanopia (blue-blind)
#787D7D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #797d7e;
/* rgb */ color: rgb(121, 125, 126);
/* oklch */ color: oklch(58.7% 0.005 214.3);
Tailwind
colors: {
  custom: {
    50: '#9fa2a3',
    500: '#797d7e',
    950: '#000000',
  },
}
SCSS
$custom: #797d7e;
$custom-light: #9fa2a3;
$custom-dark: #000000;
JSON
{
  "hex": "#797d7e",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 126
  },
  "hsl": {
    "h": 192,
    "s": 2.024,
    "l": 48.431
  },
  "oklch": {
    "l": 0.58663,
    "c": 0.00506,
    "h": 214.3
  },
  "luminance": 0.20239
}

Semantic roles & 50–950 ramp

primary
#797D7E
secondary
#ABA9A8
accent
#867DAB
background
#F9F9FA
surface
#F2F2F3
border
#CCCCCD
text
#0E0F0F
muted
#7E7E7F

Preview Lab

Preview with #797D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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