#5D3ED1#5D3ED1

#5D3ED1 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.2% C 0.212 H 285.2°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#5D3ED1
RGBrgb(93, 62, 209)
HSLhsl(253, 62%, 53%)
HSVhsv(253, 70%, 82%)
CMYKcmyk(55.5%, 70.3%, 0%, 18%)
CIE-LABlab(38.51, 50.81, -71.24)
CIE-LCHlch(38.51, 87.50, 305.50°)
OKLaboklab(49.21% 0.0557 -0.205)
OKLCHoklch(49.21% 0.212 285.2)
XYZxyz(17.7420, 10.3748, 61.3769)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3ED1 #B2D13E
analogous
#3E68D1 #5D3ED1 #A63ED1
triadic
#5D3ED1 #D15D3E #3ED15D
tetradic
#5D3ED1 #D13E68 #B2D13E #3ED1A6
square
#5D3ED1 #D13E68 #B2D13E #3ED1A6
split-complementary
#5D3ED1 #D1A63E #68D13E
monochromatic
#301D78 #4428A9 #5D3ED1 #866FDD #B0A1E9

Accessibility & contrast

On white

6.83
#5D3ED1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5D3ED1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D3ED1
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3ED1#FFFFFF#000000##FFFFFF
##5D3ED11.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD5
Deuteranopia (green-blind)
#0056CE
Tritanopia (blue-blind)
#266583
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5d3ed1;
/* rgb */ color: rgb(93, 62, 209);
/* oklch */ color: oklch(49.2% 0.212 285.2);
Tailwind
colors: {
  custom: {
    50: '#9676e0',
    500: '#5d3ed1',
    950: '#000000',
  },
}
SCSS
$custom: #5d3ed1;
$custom-light: #9676e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3ed1",
  "rgb": {
    "r": 93,
    "g": 62,
    "b": 209
  },
  "hsl": {
    "h": 252.653,
    "s": 61.506,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49207,
    "c": 0.21239,
    "h": 285.2
  },
  "luminance": 0.10376
}

Semantic roles & 50–950 ramp

primary
#5D3ED1
secondary
#C8D596
accent
#E543C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5D3ED1

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

Preview Lab → · Contrast checker → · Palette generator →

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