#5D1E86#5D1E86

#5D1E86 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.164 H 307.9°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#5D1E86
RGBrgb(93, 30, 134)
HSLhsl(276, 63%, 32%)
HSVhsv(276, 78%, 53%)
CMYKcmyk(30.6%, 77.6%, 0%, 47.5%)
CIE-LABlab(26.67, 46.32, -45.58)
CIE-LCHlch(26.67, 64.99, 315.46°)
OKLaboklab(38.87% 0.1009 -0.1295)
OKLCHoklch(38.87% 0.164 307.9)
XYZxyz(9.2806, 4.9771, 23.0214)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1E86 #47861E
analogous
#291E86 #5D1E86 #861E7B
triadic
#5D1E86 #865D1E #1E865D
tetradic
#5D1E86 #86291E #47861E #1E7B86
square
#5D1E86 #86291E #47861E #1E7B86
split-complementary
#5D1E86 #7B861E #1E8629
monochromatic
#180822 #3A1354 #5D1E86 #8029B8 #9E48D6

Accessibility & contrast

On white

10.52
#5D1E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5D1E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1E86
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1E86#FFFFFF#000000##FFFFFF
##5D1E861.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#563751
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d1e86;
/* rgb */ color: rgb(93, 30, 134);
/* oklch */ color: oklch(38.9% 0.164 307.9);
Tailwind
colors: {
  custom: {
    50: '#8f61aa',
    500: '#5d1e86',
    950: '#000000',
  },
}
SCSS
$custom: #5d1e86;
$custom-light: #8f61aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1e86",
  "rgb": {
    "r": 93,
    "g": 30,
    "b": 134
  },
  "hsl": {
    "h": 276.346,
    "s": 63.415,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38866,
    "c": 0.16415,
    "h": 307.9
  },
  "luminance": 0.04977
}

Semantic roles & 50–950 ramp

primary
#5D1E86
secondary
#74B847
accent
#E64182
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D1E86

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

Preview Lab → · Contrast checker → · Palette generator →

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