#5D3EC2#5D3EC2

#5D3EC2 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.9% C 0.194 H 287.4°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5D3EC2
RGBrgb(93, 62, 194)
HSLhsl(254, 52%, 50%)
HSVhsv(254, 68%, 76%)
CMYKcmyk(52.1%, 68%, 0%, 23.9%)
CIE-LABlab(37.24, 46.44, -64.59)
CIE-LCHlch(37.24, 79.56, 305.72°)
OKLaboklab(47.91% 0.0583 -0.1855)
OKLCHoklch(47.91% 0.194 287.4)
XYZxyz(15.9716, 9.6667, 52.0528)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3EC2 #A3C23E
analogous
#3E61C2 #5D3EC2 #9F3EC2
triadic
#5D3EC2 #C25D3E #3EC25D
tetradic
#5D3EC2 #C23E61 #A3C23E #3EC29F
square
#5D3EC2 #C23E61 #A3C23E #3EC29F
split-complementary
#5D3EC2 #C29F3E #61C23E
monochromatic
#302066 #472F94 #5D3EC2 #846DD1 #AB9BDF

Accessibility & contrast

On white

7.16
#5D3EC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5D3EC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3EC2
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3EC2#FFFFFF#000000##FFFFFF
##5D3EC21.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#36607B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d3ec2;
/* rgb */ color: rgb(93, 62, 194);
/* oklch */ color: oklch(47.9% 0.194 287.4);
Tailwind
colors: {
  custom: {
    50: '#9476d5',
    500: '#5d3ec2',
    950: '#000000',
  },
}
SCSS
$custom: #5d3ec2;
$custom-light: #9476d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3ec2",
  "rgb": {
    "r": 93,
    "g": 62,
    "b": 194
  },
  "hsl": {
    "h": 254.091,
    "s": 51.969,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47908,
    "c": 0.19442,
    "h": 287.4
  },
  "luminance": 0.09667
}

Semantic roles & 50–950 ramp

primary
#5D3EC2
secondary
#BECB90
accent
#DB4CBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5D3EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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