#5E1E8E#5E1E8E

#5E1E8E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.173 H 305.6°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#5E1E8E
RGBrgb(94, 30, 142)
HSLhsl(274, 65%, 34%)
HSVhsv(274, 79%, 56%)
CMYKcmyk(33.8%, 78.9%, 0%, 44.3%)
CIE-LABlab(27.47, 48.39, -49.26)
CIE-LCHlch(27.47, 69.05, 314.49°)
OKLaboklab(39.66% 0.1005 -0.1402)
OKLCHoklch(39.66% 0.173 305.6)
XYZxyz(9.9618, 5.2613, 26.0767)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E8E #4E8E1E
analogous
#261E8E #5E1E8E #8E1E86
triadic
#5E1E8E #8E5E1E #1E8E5E
tetradic
#5E1E8E #8E261E #4E8E1E #1E868E
square
#5E1E8E #8E261E #4E8E1E #1E868E
split-complementary
#5E1E8E #868E1E #1E8E26
monochromatic
#1B0929 #3D135B #5E1E8E #7F29C1 #9D4DD9

Accessibility & contrast

On white

10.23
#5E1E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5E1E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1E8E
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E8E#FFFFFF#000000##FFFFFF
##5E1E8E1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#553B55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e1e8e;
/* rgb */ color: rgb(94, 30, 142);
/* oklch */ color: oklch(39.7% 0.173 305.6);
Tailwind
colors: {
  custom: {
    50: '#9162b0',
    500: '#5e1e8e',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e8e;
$custom-light: #9162b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e8e",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 274.286,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39661,
    "c": 0.17255,
    "h": 305.6
  },
  "luminance": 0.05261
}

Semantic roles & 50–950 ramp

primary
#5E1E8E
secondary
#7CBC4C
accent
#E84088
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5E1E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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