#5D1586#5D1586

#5D1586 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.173 H 308.8°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#5D1586
RGBrgb(93, 21, 134)
HSLhsl(278, 73%, 30%)
HSVhsv(278, 84%, 53%)
CMYKcmyk(30.6%, 84.3%, 0%, 47.5%)
CIE-LABlab(25.52, 49.65, -47.45)
CIE-LCHlch(25.52, 68.68, 316.30°)
OKLaboklab(38.06% 0.1086 -0.1349)
OKLCHoklch(38.06% 0.173 308.8)
XYZxyz(9.0846, 4.5849, 22.9560)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1586 #3E8615
analogous
#241586 #5D1586 #861576
triadic
#5D1586 #865D15 #15865D
tetradic
#5D1586 #862415 #3E8615 #157686
square
#5D1586 #862415 #3E8615 #157686
split-complementary
#5D1586 #768615 #158624
monochromatic
#14041C #380D51 #5D1586 #821DBB #A236DF

Accessibility & contrast

On white

10.95
#5D1586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5D1586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1586
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1586#FFFFFF#000000##FFFFFF
##5D15861.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#57334F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d1586;
/* rgb */ color: rgb(93, 21, 134);
/* oklch */ color: oklch(38.1% 0.173 308.8);
Tailwind
colors: {
  custom: {
    50: '#905daa',
    500: '#5d1586',
    950: '#000000',
  },
}
SCSS
$custom: #5d1586;
$custom-light: #905daa;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1586",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 134
  },
  "hsl": {
    "h": 278.23,
    "s": 72.903,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3806,
    "c": 0.17317,
    "h": 308.8
  },
  "luminance": 0.04585
}

Semantic roles & 50–950 ramp

primary
#5D1586
secondary
#6ABA3C
accent
#F0387B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1586

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

Preview Lab → · Contrast checker → · Palette generator →

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