#7E7E8A#7E7E8A

#7E7E8A is a mid, near-neutral grey. Relative luminance 0.212; OKLCH L 59.7% C 0.018 H 285.8°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7E7E8A
RGBrgb(126, 126, 138)
HSLhsl(240, 5%, 52%)
HSVhsv(240, 9%, 54%)
CMYKcmyk(8.7%, 8.7%, 0%, 45.9%)
CIE-LABlab(53.16, 2.49, -6.48)
CIE-LCHlch(53.16, 6.94, 291.03°)
OKLaboklab(59.71% 0.0049 -0.0174)
OKLCHoklch(59.71% 0.018 285.8)
XYZxyz(20.6516, 21.1922, 27.0423)
Luminance0.2119 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7E8A #8A8A7E
analogous
#7E848A #7E7E8A #847E8A
triadic
#7E7E8A #8A7E7E #7E8A7E
tetradic
#7E7E8A #8A7E84 #8A8A7E #7E8A84
square
#7E7E8A #8A7E84 #8A8A7E #7E8A84
split-complementary
#7E7E8A #8A847E #848A7E
monochromatic
#43434A #60606A #7E7E8A #9E9EA7 #BEBEC4

Accessibility & contrast

On white

4.01
#7E7E8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#7E7E8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7E8A
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7E8A#FFFFFF#000000##000000
##7E7E8A1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B7F8B
Deuteranopia (green-blind)
#7B7F8A
Tritanopia (blue-blind)
#7C8082
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7e7e8a;
/* rgb */ color: rgb(126, 126, 138);
/* oklch */ color: oklch(59.7% 0.018 285.8);
Tailwind
colors: {
  custom: {
    50: '#a3a3ac',
    500: '#7e7e8a',
    950: '#000000',
  },
}
SCSS
$custom: #7e7e8a;
$custom-light: #a3a3ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7e8a",
  "rgb": {
    "r": 126,
    "g": 126,
    "b": 138
  },
  "hsl": {
    "h": 240,
    "s": 4.878,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59711,
    "c": 0.01807,
    "h": 285.8
  },
  "luminance": 0.21192
}

Semantic roles & 50–950 ramp

primary
#7E7E8A
secondary
#B5B5AF
accent
#AE7AAE
background
#FAFAFA
surface
#F3F3F4
border
#CDCDCE
text
#0F0F10
muted
#7F7F7F

Preview Lab

Preview with #7E7E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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