#7E8C8A#7E8C8A

#7E8C8A is a light, near-neutral grey. Relative luminance 0.250; OKLCH L 62.8% C 0.017 H 186.4°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#7E8C8A
RGBrgb(126, 140, 138)
HSLhsl(171, 6%, 52%)
HSVhsv(171, 10%, 55%)
CMYKcmyk(10%, 0%, 1.4%, 45.1%)
CIE-LABlab(57.10, -5.47, -0.66)
CIE-LCHlch(57.10, 5.51, 186.90°)
OKLaboklab(62.81% -0.0164 -0.0018)
OKLCHoklch(62.81% 0.017 186.4)
XYZxyz(22.5687, 25.0264, 27.6814)
Luminance0.2503 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8C8A #8C7E80
analogous
#7E8C83 #7E8C8A #7E878C
triadic
#7E8C8A #8A7E8C #8C8A7E
tetradic
#7E8C8A #837E8C #8C7E80 #878C7E
square
#7E8C8A #837E8C #8C7E80 #878C7E
split-complementary
#7E8C8A #8C7E87 #8C837E
monochromatic
#444C4B #616C6B #7E8C8A #9EA9A7 #BFC6C5

Accessibility & contrast

On white

3.50
#7E8C8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#7E8C8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8C8A
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8C8A#FFFFFF#000000##000000
##7E8C8A1.003.506.016.01
#FFFFFF3.501.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A8A8A
Deuteranopia (green-blind)
#88888A
Tritanopia (blue-blind)
#7B8D8B
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #7e8c8a;
/* rgb */ color: rgb(126, 140, 138);
/* oklch */ color: oklch(62.8% 0.017 186.4);
Tailwind
colors: {
  custom: {
    50: '#a3adac',
    500: '#7e8c8a',
    950: '#000000',
  },
}
SCSS
$custom: #7e8c8a;
$custom-light: #a3adac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8c8a",
  "rgb": {
    "r": 126,
    "g": 140,
    "b": 138
  },
  "hsl": {
    "h": 171.429,
    "s": 5.738,
    "l": 52.157
  },
  "oklch": {
    "l": 0.62813,
    "c": 0.01653,
    "h": 186.4
  },
  "luminance": 0.25027
}

Semantic roles & 50–950 ramp

primary
#7E8C8A
secondary
#B6B0B1
accent
#7981AF
background
#FAFAFA
surface
#F3F4F4
border
#CDCECE
text
#0F1010
muted
#7F7F7F

Preview Lab

Preview with #7E8C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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