#5A4E5E#5A4E5E

#5A4E5E is a dark, muted purple. Relative luminance 0.084; OKLCH L 44.2% C 0.030 H 317.6°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#5A4E5E
RGBrgb(90, 78, 94)
HSLhsl(285, 9%, 34%)
HSVhsv(285, 17%, 37%)
CMYKcmyk(4.3%, 17%, 0%, 63.1%)
CIE-LABlab(34.86, 8.32, -7.50)
CIE-LCHlch(34.86, 11.21, 317.97°)
OKLaboklab(44.17% 0.0221 -0.0201)
OKLCHoklch(44.17% 0.03 317.6)
XYZxyz(8.9609, 8.4307, 11.7427)
Luminance0.0843 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E5E #525E4E
analogous
#524E5E #5A4E5E #5E4E5A
triadic
#5A4E5E #5E5A4E #4E5E5A
tetradic
#5A4E5E #5E524E #525E4E #4E5A5E
square
#5A4E5E #5E524E #525E4E #4E5A5E
split-complementary
#5A4E5E #5A5E4E #4E5E52
monochromatic
#1A161B #3A323D #5A4E5E #7A6A7F #98899D

Accessibility & contrast

On white

7.82
#5A4E5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5A4E5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4E5E
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E5E#FFFFFF#000000##FFFFFF
##5A4E5E1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C515F
Deuteranopia (green-blind)
#4F525D
Tritanopia (blue-blind)
#5A5053
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a4e5e;
/* rgb */ color: rgb(90, 78, 94);
/* oklch */ color: oklch(44.2% 0.030 317.6);
Tailwind
colors: {
  custom: {
    50: '#887f8b',
    500: '#5a4e5e',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e5e;
$custom-light: #887f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e5e",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 94
  },
  "hsl": {
    "h": 285,
    "s": 9.302,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44167,
    "c": 0.02991,
    "h": 317.6
  },
  "luminance": 0.08431
}

Semantic roles & 50–950 ramp

primary
#5A4E5E
secondary
#808C7C
accent
#B27685
background
#F8F7F8
surface
#EFEEF0
border
#CAC9CB
text
#0B0A0C
muted
#7C7C7D

Preview Lab

Preview with #5A4E5E

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

Preview Lab → · Contrast checker → · Palette generator →

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