#5D4E9B#5D4E9B

#5D4E9B is a mid, vivid violet. Relative luminance 0.101; OKLCH L 47.7% C 0.121 H 290.0°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#5D4E9B
RGBrgb(93, 78, 155)
HSLhsl(252, 33%, 46%)
HSVhsv(252, 50%, 61%)
CMYKcmyk(40%, 49.7%, 0%, 39.2%)
CIE-LABlab(38.10, 25.45, -40.07)
CIE-LCHlch(38.10, 47.47, 302.42°)
OKLaboklab(47.66% 0.0413 -0.1134)
OKLCHoklch(47.66% 0.121 290)
XYZxyz(13.1534, 10.1421, 32.2686)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4E9B #8C9B4E
analogous
#4E659B #5D4E9B #834E9B
triadic
#5D4E9B #9B5D4E #4E9B5D
tetradic
#5D4E9B #9B4E65 #8C9B4E #4E9B83
square
#5D4E9B #9B4E65 #8C9B4E #4E9B83
split-complementary
#5D4E9B #9B834E #659B4E
monochromatic
#2C254A #453A72 #5D4E9B #7D6FB7 #A298CB

Accessibility & contrast

On white

6.93
#5D4E9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5D4E9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D4E9B
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4E9B#FFFFFF#000000##FFFFFF
##5D4E9B1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305B9E
Deuteranopia (green-blind)
#315899
Tritanopia (blue-blind)
#4C5E6D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5d4e9b;
/* rgb */ color: rgb(93, 78, 155);
/* oklch */ color: oklch(47.7% 0.121 290.0);
Tailwind
colors: {
  custom: {
    50: '#8e80b9',
    500: '#5d4e9b',
    950: '#000000',
  },
}
SCSS
$custom: #5d4e9b;
$custom-light: #8e80b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4e9b",
  "rgb": {
    "r": 93,
    "g": 78,
    "b": 155
  },
  "hsl": {
    "h": 251.688,
    "s": 33.047,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47663,
    "c": 0.12068,
    "h": 290
  },
  "luminance": 0.10142
}

Semantic roles & 50–950 ramp

primary
#5D4E9B
secondary
#AFB88D
accent
#C95FB4
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0D0A11
muted
#7D7C80

Preview Lab

Preview with #5D4E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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