#7E7A8A#7E7A8A

#7E7A8A is a mid, muted grey. Relative luminance 0.202; OKLCH L 58.8% C 0.025 H 297.1°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7E7A8A
RGBrgb(126, 122, 138)
HSLhsl(255, 6%, 51%)
HSVhsv(255, 12%, 54%)
CMYKcmyk(8.7%, 11.6%, 0%, 45.9%)
CIE-LABlab(52.05, 4.82, -8.13)
CIE-LCHlch(52.05, 9.45, 300.65°)
OKLaboklab(58.84% 0.0112 -0.0218)
OKLCHoklch(58.84% 0.025 297.1)
XYZxyz(20.1503, 20.1896, 26.8752)
Luminance0.2019 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7A8A #868A7A
analogous
#7A7E8A #7E7A8A #867A8A
triadic
#7E7A8A #8A7E7A #7A8A7E
tetradic
#7E7A8A #8A7A7E #868A7A #7A8A86
square
#7E7A8A #8A7A7E #868A7A #7A8A86
split-complementary
#7E7A8A #8A867A #7E8A7A
monochromatic
#434049 #605D6A #7E7A8A #9E9BA7 #BDBBC3

Accessibility & contrast

On white

4.17
#7E7A8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#7E7A8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7A8A
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7A8A#FFFFFF#000000##000000
##7E7A8A1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#777C8B
Deuteranopia (green-blind)
#787C89
Tritanopia (blue-blind)
#7C7C7F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7e7a8a;
/* rgb */ color: rgb(126, 122, 138);
/* oklch */ color: oklch(58.8% 0.025 297.1);
Tailwind
colors: {
  custom: {
    50: '#a3a0ac',
    500: '#7e7a8a',
    950: '#000000',
  },
}
SCSS
$custom: #7e7a8a;
$custom-light: #a3a0ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7a8a",
  "rgb": {
    "r": 126,
    "g": 122,
    "b": 138
  },
  "hsl": {
    "h": 255,
    "s": 6.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58844,
    "c": 0.02454,
    "h": 297.1
  },
  "luminance": 0.2019
}

Semantic roles & 50–950 ramp

primary
#7E7A8A
secondary
#B2B3AC
accent
#AF78A2
background
#FAF9FA
surface
#F3F2F4
border
#CDCCCE
text
#0F0E10
muted
#7F7E7F

Preview Lab

Preview with #7E7A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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