#7E797E#7E797E

#7E797E is a mid, near-neutral grey. Relative luminance 0.196; OKLCH L 58.2% C 0.010 H 325.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7E797E
RGBrgb(126, 121, 126)
HSLhsl(300, 2%, 48%)
HSVhsv(300, 4%, 49%)
CMYKcmyk(0%, 4%, 0%, 50.6%)
CIE-LABlab(51.40, 2.89, -2.05)
CIE-LCHlch(51.40, 3.54, 324.65°)
OKLaboklab(58.21% 0.0079 -0.0054)
OKLCHoklch(58.21% 0.01 325.7)
XYZxyz(19.2069, 19.6168, 22.5092)
Luminance0.1962 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E797E #797E79
analogous
#7B797E #7E797E #7E797B
triadic
#7E797E #7E7E79 #797E7E
tetradic
#7E797E #7E7B79 #797E79 #797B7E
square
#7E797E #7E7B79 #797E79 #797B7E
split-complementary
#7E797E #7B7E79 #797E7B
monochromatic
#403D40 #5F5B5F #7E797E #9C989C #BAB7BA

Accessibility & contrast

On white

4.27
#7E797E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#7E797E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E797E
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E797E#FFFFFF#000000##000000
##7E797E1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#797A7E
Deuteranopia (green-blind)
#7A7B7E
Tritanopia (blue-blind)
#7E797B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7e797e;
/* rgb */ color: rgb(126, 121, 126);
/* oklch */ color: oklch(58.2% 0.010 325.7);
Tailwind
colors: {
  custom: {
    50: '#a39fa3',
    500: '#7e797e',
    950: '#000000',
  },
}
SCSS
$custom: #7e797e;
$custom-light: #a39fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e797e",
  "rgb": {
    "r": 126,
    "g": 121,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 2.024,
    "l": 48.431
  },
  "oklch": {
    "l": 0.58213,
    "c": 0.00961,
    "h": 325.7
  },
  "luminance": 0.19617
}

Semantic roles & 50–950 ramp

primary
#7E797E
secondary
#A8ABA8
accent
#AB7D7D
background
#FAF9FA
surface
#F3F2F3
border
#CDCCCD
text
#0F0E0F
muted
#7F7E7F

Preview Lab

Preview with #7E797E

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

Preview Lab → · Contrast checker → · Palette generator →

#7E797E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva