#505151#505151

#505151 is a dark, near-neutral grey. Relative luminance 0.082; OKLCH L 43.4% C 0.001 H 197.0°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#505151
RGBrgb(80, 81, 81)
HSLhsl(180, 1%, 32%)
HSVhsv(180, 1%, 32%)
CMYKcmyk(1.2%, 0%, 0%, 68.2%)
CIE-LABlab(34.36, -0.40, -0.14)
CIE-LCHlch(34.36, 0.43, 199.33°)
OKLaboklab(43.4% -0.0012 -0.0004)
OKLCHoklch(43.4% 0.001 197)
XYZxyz(7.7356, 8.1844, 8.9552)
Luminance0.0818 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505151 #515050
analogous
#505151 #505151 #505151
triadic
#505151 #515051 #515150
tetradic
#505151 #515051 #515050 #515150
square
#505151 #515051 #515050 #515150
split-complementary
#505151 #515051 #515150
monochromatic
#131313 #323232 #505151 #6E7070 #8D8E8E

Accessibility & contrast

On white

7.96
#505151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#505151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505151
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505151#FFFFFF#000000##FFFFFF
##5051511.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#515151
Deuteranopia (green-blind)
#515151
Tritanopia (blue-blind)
#505151
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #505151;
/* rgb */ color: rgb(80, 81, 81);
/* oklch */ color: oklch(43.4% 0.001 197.0);
Tailwind
colors: {
  custom: {
    50: '#818181',
    500: '#505151',
    950: '#000000',
  },
}
SCSS
$custom: #505151;
$custom-light: #818181;
$custom-dark: #000000;
JSON
{
  "hex": "#505151",
  "rgb": {
    "r": 80,
    "g": 81,
    "b": 81
  },
  "hsl": {
    "h": 180,
    "s": 0.621,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43402,
    "c": 0.0013,
    "h": 197
  },
  "luminance": 0.08184
}

Semantic roles & 50–950 ramp

primary
#505151
secondary
#7F7E7E
accent
#7E7EAA
background
#F7F7F7
surface
#EEEEEE
border
#C9C9C9
text
#0A0A0A
muted
#7C7C7C

Preview Lab

Preview with #505151

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

Preview Lab → · Contrast checker → · Palette generator →

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