#5D3EB5#5D3EB5

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

Color values

HEX#5D3EB5
RGBrgb(93, 62, 181)
HSLhsl(256, 49%, 48%)
HSVhsv(256, 66%, 71%)
CMYKcmyk(48.6%, 65.7%, 0%, 29%)
CIE-LABlab(36.19, 42.66, -58.66)
CIE-LCHlch(36.19, 72.53, 306.03°)
OKLaboklab(46.83% 0.0601 -0.168)
OKLCHoklch(46.83% 0.178 289.7)
XYZxyz(14.5749, 9.1080, 44.6972)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3EB5 #96B53E
analogous
#3E5BB5 #5D3EB5 #983EB5
triadic
#5D3EB5 #B55D3E #3EB55D
tetradic
#5D3EB5 #B53E5B #96B53E #3EB598
square
#5D3EB5 #B53E5B #96B53E #3EB598
split-complementary
#5D3EB5 #B5983E #5BB53E
monochromatic
#2E1F5A #462E87 #5D3EB5 #8066CA #A693DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D3EB5#FFFFFF#000000##FFFFFF
##5D3EB51.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)
#0057B9
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#405B74
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5d3eb5;
/* rgb */ color: rgb(93, 62, 181);
/* oklch */ color: oklch(46.8% 0.178 289.7);
Tailwind
colors: {
  custom: {
    50: '#9275cc',
    500: '#5d3eb5',
    950: '#000000',
  },
}
SCSS
$custom: #5d3eb5;
$custom-light: #9275cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3eb5",
  "rgb": {
    "r": 93,
    "g": 62,
    "b": 181
  },
  "hsl": {
    "h": 255.63,
    "s": 48.971,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4683,
    "c": 0.17845,
    "h": 289.7
  },
  "luminance": 0.09109
}

Semantic roles & 50–950 ramp

primary
#5D3EB5
secondary
#B6C589
accent
#D94FB5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D3EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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