#7E7C8A#7E7C8A

#7E7C8A is a mid, muted grey. Relative luminance 0.207; OKLCH L 59.3% C 0.021 H 292.3°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#7E7C8A
RGBrgb(126, 124, 138)
HSLhsl(249, 6%, 51%)
HSVhsv(249, 10%, 54%)
CMYKcmyk(8.7%, 10.1%, 0%, 45.9%)
CIE-LABlab(52.60, 3.65, -7.30)
CIE-LCHlch(52.60, 8.16, 296.56°)
OKLaboklab(59.28% 0.008 -0.0196)
OKLCHoklch(59.28% 0.021 292.3)
XYZxyz(20.3984, 20.6858, 26.9579)
Luminance0.2069 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7C8A #888A7C
analogous
#7C818A #7E7C8A #857C8A
triadic
#7E7C8A #8A7E7C #7C8A7E
tetradic
#7E7C8A #8A7C81 #888A7C #7C8A85
square
#7E7C8A #8A7C81 #888A7C #7C8A85
split-complementary
#7E7C8A #8A857C #818A7C
monochromatic
#43424A #605F6A #7E7C8A #9E9CA7 #BEBDC4

Accessibility & contrast

On white

4.09
#7E7C8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#7E7C8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7C8A
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7C8A#FFFFFF#000000##000000
##7E7C8A1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#797E8B
Deuteranopia (green-blind)
#797D8A
Tritanopia (blue-blind)
#7C7E80
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7e7c8a;
/* rgb */ color: rgb(126, 124, 138);
/* oklch */ color: oklch(59.3% 0.021 292.3);
Tailwind
colors: {
  custom: {
    50: '#a3a1ac',
    500: '#7e7c8a',
    950: '#000000',
  },
}
SCSS
$custom: #7e7c8a;
$custom-light: #a3a1ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7c8a",
  "rgb": {
    "r": 126,
    "g": 124,
    "b": 138
  },
  "hsl": {
    "h": 248.571,
    "s": 5.645,
    "l": 51.373
  },
  "oklch": {
    "l": 0.59276,
    "c": 0.02119,
    "h": 292.3
  },
  "luminance": 0.20686
}

Semantic roles & 50–950 ramp

primary
#7E7C8A
secondary
#B3B4AE
accent
#AF79A7
background
#FAF9FA
surface
#F3F2F4
border
#CDCCCE
text
#0F0F10
muted
#7F7E7F

Preview Lab

Preview with #7E7C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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