#5D3EC0#5D3EC0

#5D3EC0 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.7% C 0.192 H 287.8°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5D3EC0
RGBrgb(93, 62, 192)
HSLhsl(254, 51%, 50%)
HSVhsv(254, 68%, 75%)
CMYKcmyk(51.6%, 67.7%, 0%, 24.7%)
CIE-LABlab(37.07, 45.86, -63.69)
CIE-LCHlch(37.07, 78.49, 305.75°)
OKLaboklab(47.74% 0.0586 -0.1828)
OKLCHoklch(47.74% 0.192 287.8)
XYZxyz(15.7485, 9.5774, 50.8778)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3EC0 #A1C03E
analogous
#3E60C0 #5D3EC0 #9E3EC0
triadic
#5D3EC0 #C05D3E #3EC05D
tetradic
#5D3EC0 #C03E60 #A1C03E #3EC09E
square
#5D3EC0 #C03E60 #A1C03E #3EC09E
split-complementary
#5D3EC0 #C09E3E #60C03E
monochromatic
#302063 #472F92 #5D3EC0 #846CCF #AA9ADE

Accessibility & contrast

On white

7.20
#5D3EC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5D3EC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3EC0
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3EC0#FFFFFF#000000##FFFFFF
##5D3EC01.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC4
Deuteranopia (green-blind)
#0054BD
Tritanopia (blue-blind)
#385F7A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d3ec0;
/* rgb */ color: rgb(93, 62, 192);
/* oklch */ color: oklch(47.7% 0.192 287.8);
Tailwind
colors: {
  custom: {
    50: '#9475d4',
    500: '#5d3ec0',
    950: '#000000',
  },
}
SCSS
$custom: #5d3ec0;
$custom-light: #9475d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3ec0",
  "rgb": {
    "r": 93,
    "g": 62,
    "b": 192
  },
  "hsl": {
    "h": 254.308,
    "s": 51.181,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47739,
    "c": 0.19199,
    "h": 287.8
  },
  "luminance": 0.09578
}

Semantic roles & 50–950 ramp

primary
#5D3EC0
secondary
#BCCA8F
accent
#DB4DB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5D3EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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