#5E1D8E#5E1D8E

#5E1D8E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.174 H 305.8°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#5E1D8E
RGBrgb(94, 29, 142)
HSLhsl(275, 66%, 34%)
HSVhsv(275, 80%, 56%)
CMYKcmyk(33.8%, 79.6%, 0%, 44.3%)
CIE-LABlab(27.33, 48.78, -49.48)
CIE-LCHlch(27.33, 69.49, 314.59°)
OKLaboklab(39.57% 0.1014 -0.1409)
OKLCHoklch(39.57% 0.174 305.8)
XYZxyz(9.9369, 5.2115, 26.0684)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1D8E #4D8E1D
analogous
#251D8E #5E1D8E #8E1D85
triadic
#5E1D8E #8E5E1D #1D8E5E
tetradic
#5E1D8E #8E251D #4D8E1D #1D858E
square
#5E1D8E #8E251D #4D8E1D #1D858E
split-complementary
#5E1D8E #858E1D #1D8E25
monochromatic
#1B0828 #3C135B #5E1D8E #8027C1 #9D4BDA

Accessibility & contrast

On white

10.28
#5E1D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5E1D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1D8E
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1D8E#FFFFFF#000000##FFFFFF
##5E1D8E1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1d8e;
/* rgb */ color: rgb(94, 29, 142);
/* oklch */ color: oklch(39.6% 0.174 305.8);
Tailwind
colors: {
  custom: {
    50: '#9161b0',
    500: '#5e1d8e',
    950: '#000000',
  },
}
SCSS
$custom: #5e1d8e;
$custom-light: #9161b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1d8e",
  "rgb": {
    "r": 94,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 274.513,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39565,
    "c": 0.17359,
    "h": 305.8
  },
  "luminance": 0.05211
}

Semantic roles & 50–950 ramp

primary
#5E1D8E
secondary
#7BBD4A
accent
#E93F87
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5E1D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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