#5E2387#5E2387

#5E2387 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.160 H 307.5°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#5E2387
RGBrgb(94, 35, 135)
HSLhsl(275, 59%, 33%)
HSVhsv(275, 74%, 53%)
CMYKcmyk(30.4%, 74.1%, 0%, 47.1%)
CIE-LABlab(27.66, 44.59, -44.59)
CIE-LCHlch(27.66, 63.06, 314.99°)
OKLaboklab(39.62% 0.0972 -0.1266)
OKLCHoklch(39.62% 0.16 307.5)
XYZxyz(9.5894, 5.3311, 23.4408)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2387 #4C8723
analogous
#2C2387 #5E2387 #87237E
triadic
#5E2387 #875E23 #23875E
tetradic
#5E2387 #872C23 #4C8723 #237E87
square
#5E2387 #872C23 #4C8723 #237E87
split-complementary
#5E2387 #7E8723 #23872C
monochromatic
#1A0A26 #3C1656 #5E2387 #8030B8 #9E52D2

Accessibility & contrast

On white

10.16
#5E2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5E2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2387
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2387#FFFFFF#000000##FFFFFF
##5E23871.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#014285
Tritanopia (blue-blind)
#573A53
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e2387;
/* rgb */ color: rgb(94, 35, 135);
/* oklch */ color: oklch(39.6% 0.160 307.5);
Tailwind
colors: {
  custom: {
    50: '#9064ab',
    500: '#5e2387',
    950: '#000000',
  },
}
SCSS
$custom: #5e2387;
$custom-light: #9064ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2387",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 275.4,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39621,
    "c": 0.15955,
    "h": 307.5
  },
  "luminance": 0.05331
}

Semantic roles & 50–950 ramp

primary
#5E2387
secondary
#7AB650
accent
#E24686
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2387

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

Preview Lab → · Contrast checker → · Palette generator →

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