#7C7E8A#7C7E8A

#7C7E8A is a mid, near-neutral grey. Relative luminance 0.210; OKLCH L 59.5% C 0.018 H 278.3°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7C7E8A
RGBrgb(124, 126, 138)
HSLhsl(231, 6%, 51%)
HSVhsv(231, 10%, 54%)
CMYKcmyk(10.1%, 8.7%, 0%, 45.9%)
CIE-LABlab(52.99, 1.77, -6.74)
CIE-LCHlch(52.99, 6.97, 284.75°)
OKLaboklab(59.54% 0.0026 -0.0181)
OKLCHoklch(59.54% 0.018 278.3)
XYZxyz(20.3595, 21.0416, 27.0286)
Luminance0.2104 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7E8A #8A887C
analogous
#7C858A #7C7E8A #817C8A
triadic
#7C7E8A #8A7C7E #7E8A7C
tetradic
#7C7E8A #8A7C85 #8A887C #7C8A81
square
#7C7E8A #8A7C85 #8A887C #7C8A81
split-complementary
#7C7E8A #8A817C #858A7C
monochromatic
#42434A #5F606A #7C7E8A #9C9EA7 #BDBEC4

Accessibility & contrast

On white

4.03
#7C7E8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#7C7E8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7E8A
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7E8A#FFFFFF#000000##000000
##7C7E8A1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B7F8B
Deuteranopia (green-blind)
#7A7E8A
Tritanopia (blue-blind)
#798082
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7c7e8a;
/* rgb */ color: rgb(124, 126, 138);
/* oklch */ color: oklch(59.5% 0.018 278.3);
Tailwind
colors: {
  custom: {
    50: '#a2a3ac',
    500: '#7c7e8a',
    950: '#000000',
  },
}
SCSS
$custom: #7c7e8a;
$custom-light: #a2a3ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7e8a",
  "rgb": {
    "r": 124,
    "g": 126,
    "b": 138
  },
  "hsl": {
    "h": 231.429,
    "s": 5.645,
    "l": 51.373
  },
  "oklch": {
    "l": 0.59542,
    "c": 0.0183,
    "h": 278.3
  },
  "luminance": 0.21042
}

Semantic roles & 50–950 ramp

primary
#7C7E8A
secondary
#B4B3AE
accent
#A779AF
background
#F9FAFA
surface
#F2F3F4
border
#CCCDCE
text
#0F0F10
muted
#7E7F7F

Preview Lab

Preview with #7C7E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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