#5D4E8A#5D4E8A

#5D4E8A is a mid, moderate violet. Relative luminance 0.096; OKLCH L 46.6% C 0.096 H 293.8°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#5D4E8A
RGBrgb(93, 78, 138)
HSLhsl(255, 28%, 42%)
HSVhsv(255, 43%, 54%)
CMYKcmyk(32.6%, 43.5%, 0%, 45.9%)
CIE-LABlab(37.13, 20.58, -31.30)
CIE-LCHlch(37.13, 37.46, 303.32°)
OKLaboklab(46.63% 0.0388 -0.0878)
OKLCHoklch(46.63% 0.096 293.8)
XYZxyz(11.8249, 9.6107, 25.2719)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4E8A #7B8A4E
analogous
#4E5D8A #5D4E8A #7B4E8A
triadic
#5D4E8A #8A5D4E #4E8A5D
tetradic
#5D4E8A #8A4E5D #7B8A4E #4E8A7B
square
#5D4E8A #8A4E5D #7B8A4E #4E8A7B
split-complementary
#5D4E8A #8A7B4E #5D8A4E
monochromatic
#28223C #433863 #5D4E8A #7A6AAB #9D91C1

Accessibility & contrast

On white

7.19
#5D4E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5D4E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D4E8A
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4E8A#FFFFFF#000000##FFFFFF
##5D4E8A1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C588C
Deuteranopia (green-blind)
#3E5689
Tritanopia (blue-blind)
#535965
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d4e8a;
/* rgb */ color: rgb(93, 78, 138);
/* oklch */ color: oklch(46.6% 0.096 293.8);
Tailwind
colors: {
  custom: {
    50: '#8d7fac',
    500: '#5d4e8a',
    950: '#000000',
  },
}
SCSS
$custom: #5d4e8a;
$custom-light: #8d7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4e8a",
  "rgb": {
    "r": 93,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 255,
    "s": 27.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46626,
    "c": 0.09596,
    "h": 293.8
  },
  "luminance": 0.09611
}

Semantic roles & 50–950 ramp

primary
#5D4E8A
secondary
#A4AE86
accent
#C464AC
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5D4E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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