#5D3EC3#5D3EC3

#5D3EC3 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.0% C 0.196 H 287.3°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5D3EC3
RGBrgb(93, 62, 195)
HSLhsl(254, 53%, 50%)
HSVhsv(254, 68%, 76%)
CMYKcmyk(52.3%, 68.2%, 0%, 23.5%)
CIE-LABlab(37.32, 46.73, -65.04)
CIE-LCHlch(37.32, 80.09, 305.70°)
OKLaboklab(47.99% 0.0581 -0.1868)
OKLCHoklch(47.99% 0.196 287.3)
XYZxyz(16.0842, 9.7117, 52.6462)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3EC3 #A4C33E
analogous
#3E61C3 #5D3EC3 #9F3EC3
triadic
#5D3EC3 #C35D3E #3EC35D
tetradic
#5D3EC3 #C33E61 #A4C33E #3EC39F
square
#5D3EC3 #C33E61 #A4C33E #3EC39F
split-complementary
#5D3EC3 #C39F3E #61C33E
monochromatic
#302067 #462E95 #5D3EC3 #846DD2 #AB9BE0

Accessibility & contrast

On white

7.14
#5D3EC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5D3EC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3EC3
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3EC3#FFFFFF#000000##FFFFFF
##5D3EC31.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC7
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#35607B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d3ec3;
/* rgb */ color: rgb(93, 62, 195);
/* oklch */ color: oklch(48.0% 0.196 287.3);
Tailwind
colors: {
  custom: {
    50: '#9476d6',
    500: '#5d3ec3',
    950: '#000000',
  },
}
SCSS
$custom: #5d3ec3;
$custom-light: #9476d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3ec3",
  "rgb": {
    "r": 93,
    "g": 62,
    "b": 195
  },
  "hsl": {
    "h": 253.985,
    "s": 52.569,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47993,
    "c": 0.19564,
    "h": 287.3
  },
  "luminance": 0.09713
}

Semantic roles & 50–950 ramp

primary
#5D3EC3
secondary
#BECC91
accent
#DC4CBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5D3EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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