#5A585A#5A585A

#5A585A is a mid, near-neutral grey. Relative luminance 0.099; OKLCH L 46.3% C 0.004 H 325.6°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#5A585A
RGBrgb(90, 88, 90)
HSLhsl(300, 1%, 35%)
HSVhsv(300, 2%, 35%)
CMYKcmyk(0%, 2.2%, 0%, 64.7%)
CIE-LABlab(37.65, 1.22, -0.87)
CIE-LCHlch(37.65, 1.50, 324.55°)
OKLaboklab(46.29% 0.0034 -0.0023)
OKLCHoklch(46.29% 0.004 325.6)
XYZxyz(9.5513, 9.8913, 11.0769)
Luminance0.0989 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A585A #585A58
analogous
#59585A #5A585A #5A5859
triadic
#5A585A #5A5A58 #585A5A
tetradic
#5A585A #5A5958 #585A58 #58595A
square
#5A585A #5A5958 #585A58 #58595A
split-complementary
#5A585A #595A58 #585A59
monochromatic
#1C1B1C #3B3A3B #5A585A #797679 #979597

Accessibility & contrast

On white

7.05
#5A585A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5A585A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A585A
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A585A#FFFFFF#000000##FFFFFF
##5A585A1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#58585A
Deuteranopia (green-blind)
#58595A
Tritanopia (blue-blind)
#5A5859
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a585a;
/* rgb */ color: rgb(90, 88, 90);
/* oklch */ color: oklch(46.3% 0.004 325.6);
Tailwind
colors: {
  custom: {
    50: '#888788',
    500: '#5a585a',
    950: '#000000',
  },
}
SCSS
$custom: #5a585a;
$custom-light: #888788;
$custom-dark: #000000;
JSON
{
  "hex": "#5a585a",
  "rgb": {
    "r": 90,
    "g": 88,
    "b": 90
  },
  "hsl": {
    "h": 300,
    "s": 1.124,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46293,
    "c": 0.00407,
    "h": 325.6
  },
  "luminance": 0.09891
}

Semantic roles & 50–950 ramp

primary
#5A585A
secondary
#868886
accent
#AA7D7D
background
#F8F8F8
surface
#EFEFEF
border
#CACACA
text
#0B0B0B
muted
#7C7C7C

Preview Lab

Preview with #5A585A

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

Preview Lab → · Contrast checker → · Palette generator →

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