#515751#515751

#515751 is a dark, near-neutral grey. Relative luminance 0.092; OKLCH L 44.9% C 0.012 H 145.4°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#515751
RGBrgb(81, 87, 81)
HSLhsl(120, 4%, 33%)
HSVhsv(120, 7%, 34%)
CMYKcmyk(6.9%, 0%, 6.9%, 65.9%)
CIE-LABlab(36.29, -3.68, 2.67)
CIE-LCHlch(36.29, 4.54, 144.08°)
OKLaboklab(44.94% -0.0101 0.007)
OKLCHoklch(44.94% 0.012 145.4)
XYZxyz(8.2865, 9.1597, 9.1144)
Luminance0.0916 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515751 #575157
analogous
#545751 #515751 #515754
triadic
#515751 #515157 #575151
tetradic
#515751 #515457 #575157 #575451
square
#515751 #515457 #575157 #575451
split-complementary
#515751 #545157 #575154
monochromatic
#161816 #333733 #515751 #6F776F #8D958D

Accessibility & contrast

On white

7.42
#515751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#515751 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515751
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515751#FFFFFF#000000##FFFFFF
##5157511.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#575651
Deuteranopia (green-blind)
#565551
Tritanopia (blue-blind)
#515755
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #515751;
/* rgb */ color: rgb(81, 87, 81);
/* oklch */ color: oklch(44.9% 0.012 145.4);
Tailwind
colors: {
  custom: {
    50: '#818681',
    500: '#515751',
    950: '#000000',
  },
}
SCSS
$custom: #515751;
$custom-light: #818681;
$custom-dark: #000000;
JSON
{
  "hex": "#515751",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 81
  },
  "hsl": {
    "h": 120,
    "s": 3.571,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44942,
    "c": 0.01226,
    "h": 145.4
  },
  "luminance": 0.0916
}

Semantic roles & 50–950 ramp

primary
#515751
secondary
#857F85
accent
#7BADAD
background
#F7F8F7
surface
#EEEFEE
border
#C9CAC9
text
#0A0B0A
muted
#7C7C7C

Preview Lab

Preview with #515751

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

Preview Lab → · Contrast checker → · Palette generator →

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