#5E2EC2#5E2EC2

#5E2EC2 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.0% C 0.212 H 290.2°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#5E2EC2
RGBrgb(94, 46, 194)
HSLhsl(259, 62%, 47%)
HSVhsv(259, 76%, 76%)
CMYKcmyk(51.5%, 76.3%, 0%, 23.9%)
CIE-LABlab(34.45, 54.68, -69.15)
CIE-LCHlch(34.45, 88.16, 308.34°)
OKLaboklab(45.96% 0.0732 -0.1987)
OKLCHoklch(45.96% 0.212 290.2)
XYZxyz(15.3279, 8.2281, 51.8090)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2EC2 #92C22E
analogous
#2E48C2 #5E2EC2 #A82EC2
triadic
#5E2EC2 #C25E2E #2EC25E
tetradic
#5E2EC2 #C22E48 #92C22E #2EC2A8
square
#5E2EC2 #C22E48 #92C22E #2EC2A8
split-complementary
#5E2EC2 #C2A82E #48C22E
monochromatic
#2E175F #462291 #5E2EC2 #8056D7 #A588E3

Accessibility & contrast

On white

7.94
#5E2EC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5E2EC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2EC2
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2EC2#FFFFFF#000000##FFFFFF
##5E2EC21.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#004EBF
Tritanopia (blue-blind)
#3A5777
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e2ec2;
/* rgb */ color: rgb(94, 46, 194);
/* oklch */ color: oklch(46.0% 0.212 290.2);
Tailwind
colors: {
  custom: {
    50: '#966cd6',
    500: '#5e2ec2',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ec2;
$custom-light: #966cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ec2",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 259.459,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45959,
    "c": 0.21177,
    "h": 290.2
  },
  "luminance": 0.08229
}

Semantic roles & 50–950 ramp

primary
#5E2EC2
secondary
#B3CC7F
accent
#E543B0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0F0714
muted
#7E7A83

Preview Lab

Preview with #5E2EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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