#5A545C#5A545C

#5A545C is a mid, near-neutral grey. Relative luminance 0.093; OKLCH L 45.4% C 0.015 H 317.7°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5A545C
RGBrgb(90, 84, 92)
HSLhsl(285, 5%, 35%)
HSVhsv(285, 9%, 36%)
CMYKcmyk(2.2%, 8.7%, 0%, 63.9%)
CIE-LABlab(36.53, 4.12, -3.76)
CIE-LCHlch(36.53, 5.58, 317.63°)
OKLaboklab(45.44% 0.011 -0.01)
OKLCHoklch(45.44% 0.015 317.7)
XYZxyz(9.3182, 9.2871, 11.4248)
Luminance0.0929 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A545C #565C54
analogous
#56545C #5A545C #5C545A
triadic
#5A545C #5C5A54 #545C5A
tetradic
#5A545C #5C5654 #565C54 #545A5C
square
#5A545C #5C5654 #565C54 #545A5C
split-complementary
#5A545C #5A5C54 #545C56
monochromatic
#1B1A1C #3B373C #5A545C #79717C #98909A

Accessibility & contrast

On white

7.35
#5A545C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5A545C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A545C
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A545C#FFFFFF#000000##FFFFFF
##5A545C1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#53565C
Deuteranopia (green-blind)
#54565C
Tritanopia (blue-blind)
#5A5557
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a545c;
/* rgb */ color: rgb(90, 84, 92);
/* oklch */ color: oklch(45.4% 0.015 317.7);
Tailwind
colors: {
  custom: {
    50: '#88848a',
    500: '#5a545c',
    950: '#000000',
  },
}
SCSS
$custom: #5a545c;
$custom-light: #88848a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a545c",
  "rgb": {
    "r": 90,
    "g": 84,
    "b": 92
  },
  "hsl": {
    "h": 285,
    "s": 4.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45441,
    "c": 0.01488,
    "h": 317.7
  },
  "luminance": 0.09287
}

Semantic roles & 50–950 ramp

primary
#5A545C
secondary
#848A82
accent
#AE7A87
background
#F8F8F8
surface
#EFEFF0
border
#CACACB
text
#0B0A0B
muted
#7C7C7C

Preview Lab

Preview with #5A545C

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

Preview Lab → · Contrast checker → · Palette generator →

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