#5A5259#5A5259

#5A5259 is a dark, near-neutral grey. Relative luminance 0.089; OKLCH L 44.9% C 0.015 H 329.8°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5A5259
RGBrgb(90, 82, 89)
HSLhsl(308, 5%, 34%)
HSVhsv(308, 9%, 35%)
CMYKcmyk(0%, 8.9%, 1.1%, 64.7%)
CIE-LABlab(35.85, 4.72, -2.89)
CIE-LCHlch(35.85, 5.54, 328.53°)
OKLaboklab(44.88% 0.0132 -0.0076)
OKLCHoklch(44.88% 0.015 329.8)
XYZxyz(9.0367, 8.9296, 10.6968)
Luminance0.0893 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5259 #525A53
analogous
#57525A #5A5259 #5A5255
triadic
#5A5259 #595A52 #52595A
tetradic
#5A5259 #5A5752 #525A53 #52555A
square
#5A5259 #5A5752 #525A53 #52555A
split-complementary
#5A5259 #555A52 #525A57
monochromatic
#1A181A #3A3539 #5A5259 #7A6F79 #988E97

Accessibility & contrast

On white

7.54
#5A5259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5A5259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5259
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5259#FFFFFF#000000##FFFFFF
##5A52591.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#525459
Deuteranopia (green-blind)
#535559
Tritanopia (blue-blind)
#5B5254
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a5259;
/* rgb */ color: rgb(90, 82, 89);
/* oklch */ color: oklch(44.9% 0.015 329.8);
Tailwind
colors: {
  custom: {
    50: '#888287',
    500: '#5a5259',
    950: '#000000',
  },
}
SCSS
$custom: #5a5259;
$custom-light: #888287;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5259",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 89
  },
  "hsl": {
    "h": 307.5,
    "s": 4.651,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44876,
    "c": 0.01521,
    "h": 329.8
  },
  "luminance": 0.0893
}

Semantic roles & 50–950 ramp

primary
#5A5259
secondary
#808881
accent
#AE807A
background
#F8F7F8
surface
#EFEEEF
border
#CAC9CA
text
#0B0A0B
muted
#7C7C7C

Preview Lab

Preview with #5A5259

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

Preview Lab → · Contrast checker → · Palette generator →

#5A5259 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva