#5D4FA1#5D4FA1

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

Color values

HEX#5D4FA1
RGBrgb(93, 79, 161)
HSLhsl(250, 34%, 47%)
HSVhsv(250, 51%, 63%)
CMYKcmyk(42.2%, 50.9%, 0%, 36.9%)
CIE-LABlab(38.71, 26.60, -42.69)
CIE-LCHlch(38.71, 50.30, 301.93°)
OKLaboklab(48.24% 0.0406 -0.1211)
OKLCHoklch(48.24% 0.128 288.5)
XYZxyz(13.7414, 10.4919, 35.0124)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4FA1 #93A14F
analogous
#4F6AA1 #5D4FA1 #864FA1
triadic
#5D4FA1 #A15D4F #4FA15D
tetradic
#5D4FA1 #A14F6A #93A14F #4FA186
square
#5D4FA1 #A14F6A #93A14F #4FA186
split-complementary
#5D4FA1 #A1864F #6AA14F
monochromatic
#2E274F #453B78 #5D4FA1 #7F73BA #A59CCE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D4FA1#FFFFFF#000000##FFFFFF
##5D4FA11.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)
#2D5DA4
Deuteranopia (green-blind)
#2D599F
Tritanopia (blue-blind)
#4A6070
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5d4fa1;
/* rgb */ color: rgb(93, 79, 161);
/* oklch */ color: oklch(48.2% 0.128 288.5);
Tailwind
colors: {
  custom: {
    50: '#8f80bd',
    500: '#5d4fa1',
    950: '#000000',
  },
}
SCSS
$custom: #5d4fa1;
$custom-light: #8f80bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4fa1",
  "rgb": {
    "r": 93,
    "g": 79,
    "b": 161
  },
  "hsl": {
    "h": 250.244,
    "s": 34.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.48241,
    "c": 0.12768,
    "h": 288.5
  },
  "luminance": 0.10492
}

Semantic roles & 50–950 ramp

primary
#5D4FA1
secondary
#B4BB91
accent
#CA5EB8
background
#F9F7FB
surface
#F1EEF6
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5D4FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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