#787271#787271

#787271 is a mid, near-neutral grey. Relative luminance 0.172; OKLCH L 55.7% C 0.008 H 28.9°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#787271
RGBrgb(120, 114, 113)
HSLhsl(9, 3%, 46%)
HSVhsv(9, 6%, 47%)
CMYKcmyk(0%, 5%, 5.8%, 52.9%)
CIE-LABlab(48.54, 2.11, 1.38)
CIE-LCHlch(48.54, 2.52, 33.11°)
OKLaboklab(55.72% 0.0067 0.0037)
OKLCHoklch(55.72% 0.008 28.9)
XYZxyz(16.7433, 17.2201, 18.0613)
Luminance0.1722 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787271 #717778
analogous
#787173 #787271 #787571
triadic
#787271 #717872 #727178
tetradic
#787271 #737871 #717778 #757178
square
#787271 #737871 #717778 #757178
split-complementary
#787271 #717875 #717378
monochromatic
#393636 #585453 #787271 #969190 #B4B0AF

Accessibility & contrast

On white

4.73
#787271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#787271 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787271
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787271#FFFFFF#000000##FFFFFF
##7872711.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#737371
Deuteranopia (green-blind)
#747471
Tritanopia (blue-blind)
#7A7172
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #787271;
/* rgb */ color: rgb(120, 114, 113);
/* oklch */ color: oklch(55.7% 0.008 28.9);
Tailwind
colors: {
  custom: {
    50: '#9f9a99',
    500: '#787271',
    950: '#000000',
  },
}
SCSS
$custom: #787271;
$custom-light: #9f9a99;
$custom-dark: #000000;
JSON
{
  "hex": "#787271",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 113
  },
  "hsl": {
    "h": 8.571,
    "s": 3.004,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55715,
    "c": 0.00762,
    "h": 28.9
  },
  "luminance": 0.1722
}

Semantic roles & 50–950 ramp

primary
#787271
secondary
#A0A4A4
accent
#A5AC7C
background
#F9F9F9
surface
#F2F2F2
border
#CCCCCC
text
#0E0E0E
muted
#7E7E7E

Preview Lab

Preview with #787271

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

Preview Lab → · Contrast checker → · Palette generator →

#787271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva