#5D3ED5#5D3ED5

#5D3ED5 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.6% C 0.217 H 284.6°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5D3ED5
RGBrgb(93, 62, 213)
HSLhsl(252, 64%, 54%)
HSVhsv(252, 71%, 84%)
CMYKcmyk(56.3%, 70.9%, 0%, 16.5%)
CIE-LABlab(38.86, 51.97, -72.97)
CIE-LCHlch(38.86, 89.59, 305.46°)
OKLaboklab(49.56% 0.0549 -0.21)
OKLCHoklch(49.56% 0.217 284.6)
XYZxyz(18.2434, 10.5754, 64.0178)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3ED5 #B6D53E
analogous
#3E6BD5 #5D3ED5 #A93ED5
triadic
#5D3ED5 #D55D3E #3ED55D
tetradic
#5D3ED5 #D53E6B #B6D53E #3ED5A9
square
#5D3ED5 #D53E6B #B6D53E #3ED5A9
split-complementary
#5D3ED5 #D5A93E #6BD53E
monochromatic
#2F1B7D #4226B0 #5D3ED5 #8770E0 #B1A3EB

Accessibility & contrast

On white

6.74
#5D3ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5D3ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D3ED5
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3ED5#FFFFFF#000000##FFFFFF
##5D3ED51.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D9
Deuteranopia (green-blind)
#0057D2
Tritanopia (blue-blind)
#206785
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5d3ed5;
/* rgb */ color: rgb(93, 62, 213);
/* oklch */ color: oklch(49.6% 0.217 284.6);
Tailwind
colors: {
  custom: {
    50: '#9776e3',
    500: '#5d3ed5',
    950: '#000000',
  },
}
SCSS
$custom: #5d3ed5;
$custom-light: #9776e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3ed5",
  "rgb": {
    "r": 93,
    "g": 62,
    "b": 213
  },
  "hsl": {
    "h": 252.318,
    "s": 64.255,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49562,
    "c": 0.2171,
    "h": 284.6
  },
  "luminance": 0.10577
}

Semantic roles & 50–950 ramp

primary
#5D3ED5
secondary
#CAD897
accent
#E741C5
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5D3ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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