#797E7E#797E7E

#797E7E is a mid, near-neutral grey. Relative luminance 0.205; OKLCH L 58.9% C 0.006 H 197.0°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#797E7E
RGBrgb(121, 126, 126)
HSLhsl(180, 2%, 48%)
HSVhsv(180, 4%, 49%)
CMYKcmyk(4%, 0%, 0%, 50.6%)
CIE-LABlab(52.39, -1.86, -0.65)
CIE-LCHlch(52.39, 1.97, 199.20°)
OKLaboklab(58.89% -0.0057 -0.0017)
OKLCHoklch(58.89% 0.006 197)
XYZxyz(19.1112, 20.4929, 22.6833)
Luminance0.2049 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E7E #7E7979
analogous
#797E7B #797E7E #797B7E
triadic
#797E7E #7E797E #7E7E79
tetradic
#797E7E #7B797E #7E7979 #7B7E79
square
#797E7E #7B797E #7E7979 #7B7E79
split-complementary
#797E7E #7E797B #7E7B79
monochromatic
#3D4040 #5B5F5F #797E7E #989C9C #B7BABA

Accessibility & contrast

On white

4.12
#797E7E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#797E7E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E7E
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E7E#FFFFFF#000000##000000
##797E7E1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D7D7E
Deuteranopia (green-blind)
#7C7D7E
Tritanopia (blue-blind)
#787E7E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #797e7e;
/* rgb */ color: rgb(121, 126, 126);
/* oklch */ color: oklch(58.9% 0.006 197.0);
Tailwind
colors: {
  custom: {
    50: '#9fa3a3',
    500: '#797e7e',
    950: '#000000',
  },
}
SCSS
$custom: #797e7e;
$custom-light: #9fa3a3;
$custom-dark: #000000;
JSON
{
  "hex": "#797e7e",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 126
  },
  "hsl": {
    "h": 180,
    "s": 2.024,
    "l": 48.431
  },
  "oklch": {
    "l": 0.58886,
    "c": 0.00599,
    "h": 197
  },
  "luminance": 0.20493
}

Semantic roles & 50–950 ramp

primary
#797E7E
secondary
#ABA8A8
accent
#7D7DAB
background
#F9FAFA
surface
#F2F3F3
border
#CCCDCD
text
#0E0F0F
muted
#7E7F7F

Preview Lab

Preview with #797E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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