#5E1D9A#5E1D9A

#5E1D9A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.186 H 301.9°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#5E1D9A
RGBrgb(94, 29, 154)
HSLhsl(271, 68%, 36%)
HSVhsv(271, 81%, 60%)
CMYKcmyk(39%, 81.2%, 0%, 39.6%)
CIE-LABlab(28.36, 51.63, -55.19)
CIE-LCHlch(28.36, 75.58, 313.09°)
OKLaboklab(40.6% 0.0981 -0.1577)
OKLCHoklch(40.6% 0.186 301.9)
XYZxyz(10.8868, 5.5915, 31.0713)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1D9A #599A1D
analogous
#1F1D9A #5E1D9A #9A1D97
triadic
#5E1D9A #9A5E1D #1D9A5E
tetradic
#5E1D9A #9A1F1D #599A1D #1D979A
square
#5E1D9A #9A1F1D #599A1D #1D979A
split-complementary
#5E1D9A #979A1D #1D9A1F
monochromatic
#1F0A33 #3F1366 #5E1D9A #7D27CE #9B53DF

Accessibility & contrast

On white

9.91
#5E1D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5E1D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1D9A
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1D9A#FFFFFF#000000##FFFFFF
##5E1D9A1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#513F5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e1d9a;
/* rgb */ color: rgb(94, 29, 154);
/* oklch */ color: oklch(40.6% 0.186 301.9);
Tailwind
colors: {
  custom: {
    50: '#9262b9',
    500: '#5e1d9a',
    950: '#000000',
  },
}
SCSS
$custom: #5e1d9a;
$custom-light: #9262b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1d9a",
  "rgb": {
    "r": 94,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 271.2,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40601,
    "c": 0.18568,
    "h": 301.9
  },
  "luminance": 0.05592
}

Semantic roles & 50–950 ramp

primary
#5E1D9A
secondary
#87C251
accent
#EB3D90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5E1D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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