#797D7D#797D7D

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

Color values

HEX#797D7D
RGBrgb(121, 125, 125)
HSLhsl(180, 2%, 48%)
HSVhsv(180, 3%, 49%)
CMYKcmyk(3.2%, 0%, 0%, 51%)
CIE-LABlab(52.08, -1.49, -0.52)
CIE-LCHlch(52.08, 1.58, 199.25°)
OKLaboklab(58.63% -0.0046 -0.0014)
OKLCHoklch(58.63% 0.005 197)
XYZxyz(18.9198, 20.2127, 22.3028)
Luminance0.2021 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D7D #7D7979
analogous
#797D7B #797D7D #797B7D
triadic
#797D7D #7D797D #7D7D79
tetradic
#797D7D #7B797D #7D7979 #7B7D79
square
#797D7D #7B797D #7D7979 #7B7D79
split-complementary
#797D7D #7D797B #7D7B79
monochromatic
#3D3F3F #5B5E5E #797D7D #989B9B #B7B9B9

Accessibility & contrast

On white

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

On black

5.04
#797D7D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D7D
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D7D#FFFFFF#000000##000000
##797D7D1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797d7d;
/* rgb */ color: rgb(121, 125, 125);
/* oklch */ color: oklch(58.6% 0.005 197.0);
Tailwind
colors: {
  custom: {
    50: '#9fa2a2',
    500: '#797d7d',
    950: '#000000',
  },
}
SCSS
$custom: #797d7d;
$custom-light: #9fa2a2;
$custom-dark: #000000;
JSON
{
  "hex": "#797d7d",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 125
  },
  "hsl": {
    "h": 180,
    "s": 1.626,
    "l": 48.235
  },
  "oklch": {
    "l": 0.5863,
    "c": 0.00481,
    "h": 197
  },
  "luminance": 0.20213
}

Semantic roles & 50–950 ramp

primary
#797D7D
secondary
#AAA8A8
accent
#7D7DAB
background
#F9F9F9
surface
#F2F2F2
border
#CCCCCC
text
#0E0F0F
muted
#7E7E7E

Preview Lab

Preview with #797D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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