#5A4E6C#5A4E6C

#5A4E6C is a dark, muted violet. Relative luminance 0.087; OKLCH L 44.8% C 0.050 H 302.7°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5A4E6C
RGBrgb(90, 78, 108)
HSLhsl(264, 16%, 36%)
HSVhsv(264, 28%, 42%)
CMYKcmyk(16.7%, 27.8%, 0%, 57.6%)
CIE-LABlab(35.41, 11.64, -15.47)
CIE-LCHlch(35.41, 19.36, 306.95°)
OKLaboklab(44.77% 0.0272 -0.0423)
OKLCHoklch(44.77% 0.05 302.7)
XYZxyz(9.6471, 8.7052, 15.3565)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E6C #606C4E
analogous
#4E516C #5A4E6C #694E6C
triadic
#5A4E6C #6C5A4E #4E6C5A
tetradic
#5A4E6C #6C4E51 #606C4E #4E6C69
square
#5A4E6C #6C4E51 #606C4E #4E6C69
split-complementary
#5A4E6C #6C694E #516C4E
monochromatic
#1F1B25 #3C3448 #5A4E6C #786890 #978AAA

Accessibility & contrast

On white

7.66
#5A4E6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5A4E6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4E6C
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E6C#FFFFFF#000000##FFFFFF
##5A4E6C1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48536D
Deuteranopia (green-blind)
#4A536B
Tritanopia (blue-blind)
#575258
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a4e6c;
/* rgb */ color: rgb(90, 78, 108);
/* oklch */ color: oklch(44.8% 0.050 302.7);
Tailwind
colors: {
  custom: {
    50: '#897f96',
    500: '#5a4e6c',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e6c;
$custom-light: #897f96;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e6c",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 108
  },
  "hsl": {
    "h": 264,
    "s": 16.129,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44769,
    "c": 0.05033,
    "h": 302.7
  },
  "luminance": 0.08705
}

Semantic roles & 50–950 ramp

primary
#5A4E6C
secondary
#8E987E
accent
#B96F9B
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0B0A0D
muted
#7C7C7E

Preview Lab

Preview with #5A4E6C

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

Preview Lab → · Contrast checker → · Palette generator →

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