#51545F#51545F

#51545F is a dark, near-neutral grey. Relative luminance 0.089; OKLCH L 44.7% C 0.018 H 273.5°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#51545F
RGBrgb(81, 84, 95)
HSLhsl(227, 8%, 35%)
HSVhsv(227, 15%, 37%)
CMYKcmyk(14.7%, 11.6%, 0%, 62.7%)
CIE-LABlab(35.82, 1.35, -6.78)
CIE-LCHlch(35.82, 6.91, 281.24°)
OKLaboklab(44.72% 0.0011 -0.0183)
OKLCHoklch(44.72% 0.018 273.5)
XYZxyz(8.6288, 8.9161, 12.0906)
Luminance0.0892 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51545F #5F5C51
analogous
#515B5F #51545F #55515F
triadic
#51545F #5F5154 #545F51
tetradic
#51545F #5F515B #5F5C51 #515F55
square
#51545F #5F515B #5F5C51 #515F55
split-complementary
#51545F #5F5551 #5B5F51
monochromatic
#191A1D #35373E #51545F #6D7180 #8D909E

Accessibility & contrast

On white

7.55
#51545F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#51545F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51545F
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51545F#FFFFFF#000000##FFFFFF
##51545F1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#515560
Deuteranopia (green-blind)
#50545F
Tritanopia (blue-blind)
#4E5658
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #51545f;
/* rgb */ color: rgb(81, 84, 95);
/* oklch */ color: oklch(44.7% 0.018 273.5);
Tailwind
colors: {
  custom: {
    50: '#82848c',
    500: '#51545f',
    950: '#000000',
  },
}
SCSS
$custom: #51545f;
$custom-light: #82848c;
$custom-dark: #000000;
JSON
{
  "hex": "#51545f",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 95
  },
  "hsl": {
    "h": 227.143,
    "s": 7.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44721,
    "c": 0.01835,
    "h": 273.5
  },
  "luminance": 0.08916
}

Semantic roles & 50–950 ramp

primary
#51545F
secondary
#8D8A7F
accent
#A577B1
background
#F7F8F8
surface
#EEEFF0
border
#C9CACB
text
#0A0A0C
muted
#7C7C7D

Preview Lab

Preview with #51545F

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

Preview Lab → · Contrast checker → · Palette generator →

#51545F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva