#5D3CD1#5D3CD1

#5D3CD1 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.9% C 0.215 H 285.5°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#5D3CD1
RGBrgb(93, 60, 209)
HSLhsl(253, 62%, 53%)
HSVhsv(253, 71%, 82%)
CMYKcmyk(55.5%, 71.3%, 0%, 18%)
CIE-LABlab(38.13, 51.86, -71.85)
CIE-LCHlch(38.13, 88.61, 305.82°)
OKLaboklab(48.94% 0.0573 -0.2068)
OKLCHoklch(48.94% 0.215 285.5)
XYZxyz(17.6352, 10.1613, 61.3413)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3CD1 #B0D13C
analogous
#3C65D1 #5D3CD1 #A83CD1
triadic
#5D3CD1 #D15D3C #3CD15D
tetradic
#5D3CD1 #D13C65 #B0D13C #3CD1A8
square
#5D3CD1 #D13C65 #B0D13C #3CD1A8
split-complementary
#5D3CD1 #D1A83C #65D13C
monochromatic
#301C77 #4428A8 #5D3CD1 #866EDD #AF9FE8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D3CD1#FFFFFF#000000##FFFFFF
##5D3CD11.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)
#005ED5
Deuteranopia (green-blind)
#0055CE
Tritanopia (blue-blind)
#276483
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5d3cd1;
/* rgb */ color: rgb(93, 60, 209);
/* oklch */ color: oklch(48.9% 0.215 285.5);
Tailwind
colors: {
  custom: {
    50: '#9675e0',
    500: '#5d3cd1',
    950: '#000000',
  },
}
SCSS
$custom: #5d3cd1;
$custom-light: #9675e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3cd1",
  "rgb": {
    "r": 93,
    "g": 60,
    "b": 209
  },
  "hsl": {
    "h": 253.289,
    "s": 61.826,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48939,
    "c": 0.21455,
    "h": 285.5
  },
  "luminance": 0.10162
}

Semantic roles & 50–950 ramp

primary
#5D3CD1
secondary
#C6D594
accent
#E543C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5D3CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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