#5D1E87#5D1E87

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

Color values

HEX#5D1E87
RGBrgb(93, 30, 135)
HSLhsl(276, 64%, 32%)
HSVhsv(276, 78%, 53%)
CMYKcmyk(31.1%, 77.8%, 0%, 47.1%)
CIE-LABlab(26.75, 46.55, -46.08)
CIE-LCHlch(26.75, 65.50, 315.30°)
OKLaboklab(38.95% 0.1007 -0.1309)
OKLCHoklch(38.95% 0.165 307.6)
XYZxyz(9.3507, 5.0051, 23.3905)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1E87 #48871E
analogous
#291E87 #5D1E87 #871E7C
triadic
#5D1E87 #875D1E #1E875D
tetradic
#5D1E87 #87291E #48871E #1E7C87
square
#5D1E87 #87291E #48871E #1E7C87
split-complementary
#5D1E87 #7C871E #1E8729
monochromatic
#180823 #3B1355 #5D1E87 #7F29B9 #9E49D7

Accessibility & contrast

On white

10.49
#5D1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1E87
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1E87#FFFFFF#000000##FFFFFF
##5D1E871.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#563851
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d1e87;
/* rgb */ color: rgb(93, 30, 135);
/* oklch */ color: oklch(38.9% 0.165 307.6);
Tailwind
colors: {
  custom: {
    50: '#8f61ab',
    500: '#5d1e87',
    950: '#000000',
  },
}
SCSS
$custom: #5d1e87;
$custom-light: #8f61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1e87",
  "rgb": {
    "r": 93,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 276,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38948,
    "c": 0.16517,
    "h": 307.6
  },
  "luminance": 0.05005
}

Semantic roles & 50–950 ramp

primary
#5D1E87
secondary
#75B948
accent
#E74183
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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