#5E2EC9#5E2EC9

#5E2EC9 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.6% C 0.219 H 288.9°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5E2EC9
RGBrgb(94, 46, 201)
HSLhsl(259, 63%, 48%)
HSVhsv(259, 77%, 79%)
CMYKcmyk(53.2%, 77.1%, 0%, 21.2%)
CIE-LABlab(35.10, 56.57, -72.18)
CIE-LCHlch(35.10, 91.70, 308.09°)
OKLaboklab(46.61% 0.0712 -0.2076)
OKLCHoklch(46.61% 0.219 288.9)
XYZxyz(16.1326, 8.5499, 56.0473)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2EC9 #99C92E
analogous
#2E4BC9 #5E2EC9 #AB2EC9
triadic
#5E2EC9 #C95E2E #2EC95E
tetradic
#5E2EC9 #C92E4B #99C92E #2EC9AB
square
#5E2EC9 #C92E4B #99C92E #2EC9AB
split-complementary
#5E2EC9 #C9AB2E #4BC92E
monochromatic
#2F1765 #472397 #5E2EC9 #825BD9 #A88DE5

Accessibility & contrast

On white

7.75
#5E2EC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5E2EC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2EC9
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2EC9#FFFFFF#000000##FFFFFF
##5E2EC91.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CD
Deuteranopia (green-blind)
#004FC6
Tritanopia (blue-blind)
#345A7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5e2ec9;
/* rgb */ color: rgb(94, 46, 201);
/* oklch */ color: oklch(46.6% 0.219 288.9);
Tailwind
colors: {
  custom: {
    50: '#976ddb',
    500: '#5e2ec9',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ec9;
$custom-light: #976ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ec9",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 201
  },
  "hsl": {
    "h": 258.581,
    "s": 62.753,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4661,
    "c": 0.21946,
    "h": 288.9
  },
  "luminance": 0.08551
}

Semantic roles & 50–950 ramp

primary
#5E2EC9
secondary
#B8CF84
accent
#E642B3
background
#FAF6FD
surface
#F3ECFB
border
#CDC7D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #5E2EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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