#5E1E9A#5E1E9A

#5E1E9A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.185 H 301.8°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#5E1E9A
RGBrgb(94, 30, 154)
HSLhsl(271, 67%, 36%)
HSVhsv(271, 81%, 60%)
CMYKcmyk(39%, 80.5%, 0%, 39.6%)
CIE-LABlab(28.49, 51.25, -54.98)
CIE-LCHlch(28.49, 75.16, 312.99°)
OKLaboklab(40.69% 0.0973 -0.157)
OKLCHoklch(40.69% 0.185 301.8)
XYZxyz(10.9117, 5.6413, 31.0796)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E9A #5A9A1E
analogous
#201E9A #5E1E9A #9A1E98
triadic
#5E1E9A #9A5E1E #1E9A5E
tetradic
#5E1E9A #9A201E #5A9A1E #1E989A
square
#5E1E9A #9A201E #5A9A1E #1E989A
split-complementary
#5E1E9A #989A1E #1E9A20
monochromatic
#1F0A34 #3F1467 #5E1E9A #7D28CD #9B55DE

Accessibility & contrast

On white

9.87
#5E1E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5E1E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1E9A
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E9A#FFFFFF#000000##FFFFFF
##5E1E9A1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#51405C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e1e9a;
/* rgb */ color: rgb(94, 30, 154);
/* oklch */ color: oklch(40.7% 0.185 301.8);
Tailwind
colors: {
  custom: {
    50: '#9262b9',
    500: '#5e1e9a',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e9a;
$custom-light: #9262b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e9a",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 154
  },
  "hsl": {
    "h": 270.968,
    "s": 67.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40692,
    "c": 0.18473,
    "h": 301.8
  },
  "luminance": 0.05641
}

Semantic roles & 50–950 ramp

primary
#5E1E9A
secondary
#88C153
accent
#EA3E91
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E1E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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