#787A7C#787A7C

#787A7C is a mid, near-neutral grey. Relative luminance 0.194; OKLCH L 57.8% C 0.004 H 247.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#787A7C
RGBrgb(120, 122, 124)
HSLhsl(210, 2%, 48%)
HSVhsv(210, 3%, 49%)
CMYKcmyk(3.2%, 1.6%, 0%, 51.4%)
CIE-LABlab(51.11, -0.34, -1.35)
CIE-LCHlch(51.11, 1.40, 255.80°)
OKLaboklab(57.84% -0.0015 -0.0036)
OKLCHoklch(57.84% 0.004 247.8)
XYZxyz(18.3427, 19.3673, 21.8368)
Luminance0.1937 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A7C #7C7A78
analogous
#787C7C #787A7C #78787C
triadic
#787A7C #7C787A #7A7C78
tetradic
#787A7C #7C787C #7C7A78 #787C78
square
#787A7C #7C787C #7C7A78 #787C78
split-complementary
#787A7C #7C7878 #7C7C78
monochromatic
#3C3D3E #5A5B5D #787A7C #97999A #B6B7B8

Accessibility & contrast

On white

4.31
#787A7C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#787A7C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787A7C
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787A7C#FFFFFF#000000##000000
##787A7C1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#797A7C
Deuteranopia (green-blind)
#797A7C
Tritanopia (blue-blind)
#777A7B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787a7c;
/* rgb */ color: rgb(120, 122, 124);
/* oklch */ color: oklch(57.8% 0.004 247.8);
Tailwind
colors: {
  custom: {
    50: '#9fa0a1',
    500: '#787a7c',
    950: '#000000',
  },
}
SCSS
$custom: #787a7c;
$custom-light: #9fa0a1;
$custom-dark: #000000;
JSON
{
  "hex": "#787a7c",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 124
  },
  "hsl": {
    "h": 210,
    "s": 1.639,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57843,
    "c": 0.0039,
    "h": 247.8
  },
  "luminance": 0.19367
}

Semantic roles & 50–950 ramp

primary
#787A7C
secondary
#A9A8A7
accent
#947DAB
background
#F9F9F9
surface
#F2F2F2
border
#CCCCCC
text
#0E0E0F
muted
#7E7E7E

Preview Lab

Preview with #787A7C

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

Preview Lab → · Contrast checker → · Palette generator →

#787A7C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva