#515151#515151

#515151 is a dark, near-neutral grey. Relative luminance 0.082; OKLCH L 43.5% C 0.000 H 0.0°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#515151
RGBrgb(81, 81, 81)
HSLhsl(0, 0%, 32%)
HSVhsv(0, 0%, 32%)
CMYKcmyk(0%, 0%, 0%, 68.2%)
CIE-LABlab(34.45, -0.00, 0.00)
CIE-LCHlch(34.45, 0.00, 168.69°)
OKLaboklab(43.5% 0 0)
OKLCHoklch(43.5% 0 0)
XYZxyz(7.8207, 8.2283, 8.9592)
Luminance0.0823 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515151 #515151
analogous
#515151 #515151 #515151
triadic
#515151 #515151 #515151
tetradic
#515151 #515151 #515151 #515151
square
#515151 #515151 #515151 #515151
split-complementary
#515151 #515151 #515151
monochromatic
#141414 #323232 #515151 #707070 #8E8E8E

Accessibility & contrast

On white

7.94
#515151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#515151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515151
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515151#FFFFFF#000000##FFFFFF
##5151511.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #515151;
/* rgb */ color: rgb(81, 81, 81);
/* oklch */ color: oklch(43.5% 0.000 0.0);
Tailwind
colors: {
  custom: {
    50: '#818181',
    500: '#515151',
    950: '#000000',
  },
}
SCSS
$custom: #515151;
$custom-light: #818181;
$custom-dark: #000000;
JSON
{
  "hex": "#515151",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 81
  },
  "hsl": {
    "h": 0,
    "s": 0,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43495,
    "c": 0,
    "h": 0
  },
  "luminance": 0.08228
}

Semantic roles & 50–950 ramp

primary
#515151
secondary
#7F7F7F
accent
#A9A97E
background
#F7F7F7
surface
#EEEEEE
border
#C9C9C9
text
#0A0A0A
muted
#7C7C7C

Preview Lab

Preview with #515151

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

Preview Lab → · Contrast checker → · Palette generator →

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