#7E787A#7E787A

#7E787A is a mid, near-neutral grey. Relative luminance 0.193; OKLCH L 57.9% C 0.008 H 355.0°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7E787A
RGBrgb(126, 120, 122)
HSLhsl(340, 2%, 48%)
HSVhsv(340, 5%, 49%)
CMYKcmyk(0%, 4.8%, 3.2%, 50.6%)
CIE-LABlab(51.01, 2.68, -0.28)
CIE-LCHlch(51.01, 2.69, 354.11°)
OKLaboklab(57.87% 0.0079 -0.0007)
OKLCHoklch(57.87% 0.008 355)
XYZxyz(18.8330, 19.2738, 21.1367)
Luminance0.1927 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E787A #787E7C
analogous
#7E787D #7E787A #7E7978
triadic
#7E787A #7A7E78 #787A7E
tetradic
#7E787A #7D7E78 #787E7C #79787E
square
#7E787A #7D7E78 #787E7C #79787E
split-complementary
#7E787A #787E79 #787D7E
monochromatic
#3F3C3D #5F5A5C #7E787A #9C9799 #BAB6B8

Accessibility & contrast

On white

4.33
#7E787A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#7E787A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E787A
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E787A#FFFFFF#000000##000000
##7E787A1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#79797A
Deuteranopia (green-blind)
#7A7A7A
Tritanopia (blue-blind)
#7F7879
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7e787a;
/* rgb */ color: rgb(126, 120, 122);
/* oklch */ color: oklch(57.9% 0.008 355.0);
Tailwind
colors: {
  custom: {
    50: '#a39fa0',
    500: '#7e787a',
    950: '#000000',
  },
}
SCSS
$custom: #7e787a;
$custom-light: #a39fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e787a",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 122
  },
  "hsl": {
    "h": 340,
    "s": 2.439,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57865,
    "c": 0.0079,
    "h": 355
  },
  "luminance": 0.19274
}

Semantic roles & 50–950 ramp

primary
#7E787A
secondary
#A7AAA9
accent
#AC9C7C
background
#FAF9F9
surface
#F3F2F2
border
#CDCCCC
text
#0F0E0E
muted
#7F7E7E

Preview Lab

Preview with #7E787A

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

Preview Lab → · Contrast checker → · Palette generator →

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