#5D4EA5#5D4EA5

#5D4EA5 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 48.3% C 0.135 H 288.2°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#5D4EA5
RGBrgb(93, 78, 165)
HSLhsl(250, 36%, 48%)
HSVhsv(250, 53%, 65%)
CMYKcmyk(43.6%, 52.7%, 0%, 35.3%)
CIE-LABlab(38.71, 28.41, -45.08)
CIE-LCHlch(38.71, 53.29, 302.22°)
OKLaboklab(48.32% 0.0421 -0.1281)
OKLCHoklch(48.32% 0.135 288.2)
XYZxyz(14.0282, 10.4920, 36.8760)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4EA5 #96A54E
analogous
#4E6AA5 #5D4EA5 #884EA5
triadic
#5D4EA5 #A55D4E #4EA55D
tetradic
#5D4EA5 #A54E6A #96A54E #4EA588
square
#5D4EA5 #A54E6A #96A54E #4EA588
split-complementary
#5D4EA5 #A5884E #6AA54E
monochromatic
#2E2752 #463A7B #5D4EA5 #8073BD #A69DD1

Accessibility & contrast

On white

6.78
#5D4EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5D4EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D4EA5
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4EA5#FFFFFF#000000##FFFFFF
##5D4EA51.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265DA8
Deuteranopia (green-blind)
#2759A3
Tritanopia (blue-blind)
#486072
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5d4ea5;
/* rgb */ color: rgb(93, 78, 165);
/* oklch */ color: oklch(48.3% 0.135 288.2);
Tailwind
colors: {
  custom: {
    50: '#8f80c0',
    500: '#5d4ea5',
    950: '#000000',
  },
}
SCSS
$custom: #5d4ea5;
$custom-light: #8f80c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4ea5",
  "rgb": {
    "r": 93,
    "g": 78,
    "b": 165
  },
  "hsl": {
    "h": 250.345,
    "s": 35.802,
    "l": 47.647
  },
  "oklch": {
    "l": 0.48322,
    "c": 0.13483,
    "h": 288.2
  },
  "luminance": 0.10493
}

Semantic roles & 50–950 ramp

primary
#5D4EA5
secondary
#B6BD91
accent
#CC5CB9
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5D4EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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