#5D4E9D#5D4E9D

#5D4E9D is a mid, vivid violet. Relative luminance 0.102; OKLCH L 47.8% C 0.124 H 289.6°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5D4E9D
RGBrgb(93, 78, 157)
HSLhsl(251, 34%, 46%)
HSVhsv(251, 50%, 62%)
CMYKcmyk(40.8%, 50.3%, 0%, 38.4%)
CIE-LABlab(38.22, 26.04, -41.08)
CIE-LCHlch(38.22, 48.64, 302.37°)
OKLaboklab(47.79% 0.0415 -0.1164)
OKLCHoklch(47.79% 0.124 289.6)
XYZxyz(13.3227, 10.2098, 33.1605)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4E9D #8E9D4E
analogous
#4E669D #5D4E9D #844E9D
triadic
#5D4E9D #9D5D4E #4E9D5D
tetradic
#5D4E9D #9D4E66 #8E9D4E #4E9D84
square
#5D4E9D #9D4E66 #8E9D4E #4E9D84
split-complementary
#5D4E9D #9D844E #669D4E
monochromatic
#2D254B #453A74 #5D4E9D #7E70B8 #A399CC

Accessibility & contrast

On white

6.90
#5D4E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5D4E9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D4E9D
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4E9D#FFFFFF#000000##FFFFFF
##5D4E9D1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5CA0
Deuteranopia (green-blind)
#2F589B
Tritanopia (blue-blind)
#4B5E6E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5d4e9d;
/* rgb */ color: rgb(93, 78, 157);
/* oklch */ color: oklch(47.8% 0.124 289.6);
Tailwind
colors: {
  custom: {
    50: '#8e80ba',
    500: '#5d4e9d',
    950: '#000000',
  },
}
SCSS
$custom: #5d4e9d;
$custom-light: #8e80ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4e9d",
  "rgb": {
    "r": 93,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 251.392,
    "s": 33.617,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47792,
    "c": 0.12354,
    "h": 289.6
  },
  "luminance": 0.1021
}

Semantic roles & 50–950 ramp

primary
#5D4E9D
secondary
#B1B98E
accent
#CA5EB5
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0D0A12
muted
#7D7C81

Preview Lab

Preview with #5D4E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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