#7F7C8A#7F7C8A

#7F7C8A is a mid, muted grey. Relative luminance 0.208; OKLCH L 59.4% C 0.021 H 295.6°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7F7C8A
RGBrgb(127, 124, 138)
HSLhsl(253, 6%, 51%)
HSVhsv(253, 10%, 54%)
CMYKcmyk(8%, 10.1%, 0%, 45.9%)
CIE-LABlab(52.69, 4.01, -7.17)
CIE-LCHlch(52.69, 8.21, 299.22°)
OKLaboklab(59.36% 0.0092 -0.0192)
OKLCHoklch(59.36% 0.021 295.6)
XYZxyz(20.5466, 20.7623, 26.9649)
Luminance0.2076 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7C8A #878A7C
analogous
#7C808A #7F7C8A #867C8A
triadic
#7F7C8A #8A7F7C #7C8A7F
tetradic
#7F7C8A #8A7C80 #878A7C #7C8A86
square
#7F7C8A #8A7C80 #878A7C #7C8A86
split-complementary
#7F7C8A #8A867C #808A7C
monochromatic
#44424A #615F6A #7F7C8A #9F9CA7 #BEBDC4

Accessibility & contrast

On white

4.08
#7F7C8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#7F7C8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7C8A
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7C8A#FFFFFF#000000##000000
##7F7C8A1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f7c8a;
/* rgb */ color: rgb(127, 124, 138);
/* oklch */ color: oklch(59.4% 0.021 295.6);
Tailwind
colors: {
  custom: {
    50: '#a4a1ac',
    500: '#7f7c8a',
    950: '#000000',
  },
}
SCSS
$custom: #7f7c8a;
$custom-light: #a4a1ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7c8a",
  "rgb": {
    "r": 127,
    "g": 124,
    "b": 138
  },
  "hsl": {
    "h": 252.857,
    "s": 5.645,
    "l": 51.373
  },
  "oklch": {
    "l": 0.59363,
    "c": 0.02133,
    "h": 295.6
  },
  "luminance": 0.20762
}

Semantic roles & 50–950 ramp

primary
#7F7C8A
secondary
#B3B4AE
accent
#AF79A3
background
#FAF9FA
surface
#F4F2F4
border
#CECCCE
text
#0F0F10
muted
#7F7E7F

Preview Lab

Preview with #7F7C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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