#5E1589#5E1589

#5E1589 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.176 H 308.3°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#5E1589
RGBrgb(94, 21, 137)
HSLhsl(278, 73%, 31%)
HSVhsv(278, 85%, 54%)
CMYKcmyk(31.4%, 84.7%, 0%, 46.3%)
CIE-LABlab(25.93, 50.49, -48.65)
CIE-LCHlch(25.93, 70.12, 316.06°)
OKLaboklab(38.46% 0.1092 -0.1384)
OKLCHoklch(38.46% 0.176 308.3)
XYZxyz(9.3987, 4.7223, 24.0784)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1589 #408915
analogous
#241589 #5E1589 #89157A
triadic
#5E1589 #895E15 #15895E
tetradic
#5E1589 #892415 #408915 #157A89
square
#5E1589 #892415 #408915 #157A89
split-complementary
#5E1589 #7A8915 #158924
monochromatic
#15051F #3A0D54 #5E1589 #821DBE #A238E0

Accessibility & contrast

On white

10.80
#5E1589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5E1589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1589
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1589#FFFFFF#000000##FFFFFF
##5E15891.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#573551
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1589;
/* rgb */ color: rgb(94, 21, 137);
/* oklch */ color: oklch(38.5% 0.176 308.3);
Tailwind
colors: {
  custom: {
    50: '#915eac',
    500: '#5e1589',
    950: '#000000',
  },
}
SCSS
$custom: #5e1589;
$custom-light: #915eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1589",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 277.759,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38457,
    "c": 0.17627,
    "h": 308.3
  },
  "luminance": 0.04722
}

Semantic roles & 50–950 ramp

primary
#5E1589
secondary
#6CBD3D
accent
#F0387C
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1589

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

Preview Lab → · Contrast checker → · Palette generator →

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