#5E3EC2#5E3EC2

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

Color values

HEX#5E3EC2
RGBrgb(94, 62, 194)
HSLhsl(255, 52%, 50%)
HSVhsv(255, 68%, 76%)
CMYKcmyk(51.5%, 68%, 0%, 23.9%)
CIE-LABlab(37.33, 46.61, -64.43)
CIE-LCHlch(37.33, 79.53, 305.88°)
OKLaboklab(48% 0.0597 -0.185)
OKLCHoklch(48% 0.194 287.9)
XYZxyz(16.0735, 9.7192, 52.0575)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3EC2 #A2C23E
analogous
#3E60C2 #5E3EC2 #A03EC2
triadic
#5E3EC2 #C25E3E #3EC25E
tetradic
#5E3EC2 #C23E60 #A2C23E #3EC2A0
square
#5E3EC2 #C23E60 #A2C23E #3EC2A0
split-complementary
#5E3EC2 #C2A03E #60C23E
monochromatic
#312066 #472F94 #5E3EC2 #856DD1 #AC9BDF

Accessibility & contrast

On white

7.13
#5E3EC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E3EC2
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3EC2#FFFFFF#000000##FFFFFF
##5E3EC21.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e3ec2;
/* rgb */ color: rgb(94, 62, 194);
/* oklch */ color: oklch(48.0% 0.194 287.9);
Tailwind
colors: {
  custom: {
    50: '#9576d5',
    500: '#5e3ec2',
    950: '#000000',
  },
}
SCSS
$custom: #5e3ec2;
$custom-light: #9576d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3ec2",
  "rgb": {
    "r": 94,
    "g": 62,
    "b": 194
  },
  "hsl": {
    "h": 254.545,
    "s": 51.969,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48,
    "c": 0.19437,
    "h": 287.9
  },
  "luminance": 0.0972
}

Semantic roles & 50–950 ramp

primary
#5E3EC2
secondary
#BDCB90
accent
#DB4CB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5E3EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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