#5D3EC4#5D3EC4

#5D3EC4 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.1% C 0.197 H 287.1°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5D3EC4
RGBrgb(93, 62, 196)
HSLhsl(254, 53%, 51%)
HSVhsv(254, 68%, 77%)
CMYKcmyk(52.6%, 68.4%, 0%, 23.1%)
CIE-LABlab(37.40, 47.02, -65.49)
CIE-LCHlch(37.40, 80.63, 305.68°)
OKLaboklab(48.08% 0.058 -0.1881)
OKLCHoklch(48.08% 0.197 287.1)
XYZxyz(16.1977, 9.7571, 53.2437)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3EC4 #A5C43E
analogous
#3E62C4 #5D3EC4 #A03EC4
triadic
#5D3EC4 #C45D3E #3EC45D
tetradic
#5D3EC4 #C43E62 #A5C43E #3EC4A0
square
#5D3EC4 #C43E62 #A5C43E #3EC4A0
split-complementary
#5D3EC4 #C4A03E #62C43E
monochromatic
#302068 #462E97 #5D3EC4 #846DD2 #AC9CE1

Accessibility & contrast

On white

7.11
#5D3EC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5D3EC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3EC4
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3EC4#FFFFFF#000000##FFFFFF
##5D3EC41.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC8
Deuteranopia (green-blind)
#0054C1
Tritanopia (blue-blind)
#35607C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d3ec4;
/* rgb */ color: rgb(93, 62, 196);
/* oklch */ color: oklch(48.1% 0.197 287.1);
Tailwind
colors: {
  custom: {
    50: '#9476d7',
    500: '#5d3ec4',
    950: '#000000',
  },
}
SCSS
$custom: #5d3ec4;
$custom-light: #9476d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3ec4",
  "rgb": {
    "r": 93,
    "g": 62,
    "b": 196
  },
  "hsl": {
    "h": 253.881,
    "s": 53.175,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48078,
    "c": 0.19685,
    "h": 287.1
  },
  "luminance": 0.09758
}

Semantic roles & 50–950 ramp

primary
#5D3EC4
secondary
#BFCD91
accent
#DD4BBB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5D3EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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