#5D2387#5D2387

#5D2387 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.159 H 306.9°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#5D2387
RGBrgb(93, 35, 135)
HSLhsl(275, 59%, 33%)
HSVhsv(275, 74%, 53%)
CMYKcmyk(31.1%, 74.1%, 0%, 47.1%)
CIE-LABlab(27.51, 44.38, -44.83)
CIE-LCHlch(27.51, 63.08, 314.71°)
OKLaboklab(39.49% 0.0957 -0.1273)
OKLCHoklch(39.49% 0.159 306.9)
XYZxyz(9.4875, 5.2786, 23.4360)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2387 #4D8723
analogous
#2B2387 #5D2387 #87237F
triadic
#5D2387 #875D23 #23875D
tetradic
#5D2387 #872B23 #4D8723 #237F87
square
#5D2387 #872B23 #4D8723 #237F87
split-complementary
#5D2387 #7F8723 #23872B
monochromatic
#1A0A26 #3C1656 #5D2387 #7E30B8 #9C52D2

Accessibility & contrast

On white

10.22
#5D2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5D2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2387
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2387#FFFFFF#000000##FFFFFF
##5D23871.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#563A53
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d2387;
/* rgb */ color: rgb(93, 35, 135);
/* oklch */ color: oklch(39.5% 0.159 306.9);
Tailwind
colors: {
  custom: {
    50: '#8f64ab',
    500: '#5d2387',
    950: '#000000',
  },
}
SCSS
$custom: #5d2387;
$custom-light: #8f64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2387",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 274.8,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39488,
    "c": 0.15927,
    "h": 306.9
  },
  "luminance": 0.05278
}

Semantic roles & 50–950 ramp

primary
#5D2387
secondary
#7BB650
accent
#E24687
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2387

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

Preview Lab → · Contrast checker → · Palette generator →

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