#787A7E#787A7E

#787A7E is a mid, near-neutral grey. Relative luminance 0.194; OKLCH L 57.9% C 0.007 H 264.5°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#787A7E
RGBrgb(120, 122, 126)
HSLhsl(220, 2%, 48%)
HSVhsv(220, 5%, 49%)
CMYKcmyk(4.8%, 3.2%, 0%, 50.6%)
CIE-LABlab(51.17, 0.07, -2.44)
CIE-LCHlch(51.17, 2.44, 271.69°)
OKLaboklab(57.91% -0.0006 -0.0065)
OKLCHoklch(57.91% 0.007 264.5)
XYZxyz(18.4704, 19.4184, 22.5097)
Luminance0.1942 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A7E #7E7C78
analogous
#787D7E #787A7E #79787E
triadic
#787A7E #7E787A #7A7E78
tetradic
#787A7E #7E787D #7E7C78 #787E79
square
#787A7E #7E787D #7E7C78 #787E79
split-complementary
#787A7E #7E7978 #7D7E78
monochromatic
#3C3D3F #5A5C5F #787A7E #97999C #B6B8BA

Accessibility & contrast

On white

4.30
#787A7E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#787A7E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787A7E
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787A7E#FFFFFF#000000##000000
##787A7E1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#797A7E
Deuteranopia (green-blind)
#787A7E
Tritanopia (blue-blind)
#777B7B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787a7e;
/* rgb */ color: rgb(120, 122, 126);
/* oklch */ color: oklch(57.9% 0.007 264.5);
Tailwind
colors: {
  custom: {
    50: '#9fa0a3',
    500: '#787a7e',
    950: '#000000',
  },
}
SCSS
$custom: #787a7e;
$custom-light: #9fa0a3;
$custom-dark: #000000;
JSON
{
  "hex": "#787a7e",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 126
  },
  "hsl": {
    "h": 220,
    "s": 2.439,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57909,
    "c": 0.00655,
    "h": 264.5
  },
  "luminance": 0.19418
}

Semantic roles & 50–950 ramp

primary
#787A7E
secondary
#AAA9A7
accent
#9C7CAC
background
#F9F9FA
surface
#F2F2F3
border
#CCCCCD
text
#0E0E0F
muted
#7E7E7F

Preview Lab

Preview with #787A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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