#5D3CBA#5D3CBA

#5D3CBA is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.9% C 0.187 H 289.2°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#5D3CBA
RGBrgb(93, 60, 186)
HSLhsl(256, 51%, 48%)
HSVhsv(256, 68%, 73%)
CMYKcmyk(50%, 67.7%, 0%, 27.1%)
CIE-LABlab(36.18, 45.22, -61.62)
CIE-LCHlch(36.18, 76.43, 306.27°)
OKLaboklab(46.95% 0.0614 -0.1767)
OKLCHoklch(46.95% 0.187 289.2)
XYZxyz(14.9904, 9.1034, 47.4121)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3CBA #99BA3C
analogous
#3C5ABA #5D3CBA #9C3CBA
triadic
#5D3CBA #BA5D3C #3CBA5D
tetradic
#5D3CBA #BA3C5A #99BA3C #3CBA9C
square
#5D3CBA #BA3C5A #99BA3C #3CBA9C
split-complementary
#5D3CBA #BA9C3C #5ABA3C
monochromatic
#2F1E5D #462D8C #5D3CBA #8166CE #A794DC

Accessibility & contrast

On white

7.44
#5D3CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5D3CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3CBA
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3CBA#FFFFFF#000000##FFFFFF
##5D3CBA1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#3D5C76
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5d3cba;
/* rgb */ color: rgb(93, 60, 186);
/* oklch */ color: oklch(46.9% 0.187 289.2);
Tailwind
colors: {
  custom: {
    50: '#9374d0',
    500: '#5d3cba',
    950: '#000000',
  },
}
SCSS
$custom: #5d3cba;
$custom-light: #9374d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3cba",
  "rgb": {
    "r": 93,
    "g": 60,
    "b": 186
  },
  "hsl": {
    "h": 255.714,
    "s": 51.22,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46948,
    "c": 0.1871,
    "h": 289.2
  },
  "luminance": 0.09104
}

Semantic roles & 50–950 ramp

primary
#5D3CBA
secondary
#B8C88A
accent
#DB4DB6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5D3CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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