#5D2386#5D2386

#5D2386 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.158 H 307.3°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#5D2386
RGBrgb(93, 35, 134)
HSLhsl(275, 59%, 33%)
HSVhsv(275, 74%, 53%)
CMYKcmyk(30.6%, 73.9%, 0%, 47.5%)
CIE-LABlab(27.44, 44.14, -44.34)
CIE-LCHlch(27.44, 62.56, 314.87°)
OKLaboklab(39.41% 0.0959 -0.1258)
OKLCHoklch(39.41% 0.158 307.3)
XYZxyz(9.4174, 5.2506, 23.0670)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2386 #4C8623
analogous
#2C2386 #5D2386 #86237D
triadic
#5D2386 #865D23 #23865D
tetradic
#5D2386 #862C23 #4C8623 #237D86
square
#5D2386 #862C23 #4C8623 #237D86
split-complementary
#5D2386 #7D8623 #23862C
monochromatic
#1A0A25 #3B1655 #5D2386 #7F30B7 #9D52D2

Accessibility & contrast

On white

10.24
#5D2386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5D2386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2386
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2386#FFFFFF#000000##FFFFFF
##5D23861.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F89
Deuteranopia (green-blind)
#014184
Tritanopia (blue-blind)
#563A52
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d2386;
/* rgb */ color: rgb(93, 35, 134);
/* oklch */ color: oklch(39.4% 0.158 307.3);
Tailwind
colors: {
  custom: {
    50: '#8f64aa',
    500: '#5d2386',
    950: '#000000',
  },
}
SCSS
$custom: #5d2386;
$custom-light: #8f64aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2386",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 134
  },
  "hsl": {
    "h": 275.152,
    "s": 58.58,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39409,
    "c": 0.1582,
    "h": 307.3
  },
  "luminance": 0.0525
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D2386

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

Preview Lab → · Contrast checker → · Palette generator →

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