#5D1589#5D1589

#5D1589 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.176 H 307.7°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#5D1589
RGBrgb(93, 21, 137)
HSLhsl(277, 73%, 31%)
HSVhsv(277, 85%, 54%)
CMYKcmyk(32.1%, 84.7%, 0%, 46.3%)
CIE-LABlab(25.77, 50.32, -48.91)
CIE-LCHlch(25.77, 70.18, 315.81°)
OKLaboklab(38.32% 0.1077 -0.1392)
OKLCHoklch(38.32% 0.176 307.7)
XYZxyz(9.2968, 4.6698, 24.0737)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1589 #418915
analogous
#231589 #5D1589 #89157B
triadic
#5D1589 #895D15 #15895D
tetradic
#5D1589 #892315 #418915 #157B89
square
#5D1589 #892315 #418915 #157B89
split-complementary
#5D1589 #7B8915 #158923
monochromatic
#15051F #390D54 #5D1589 #811DBE #A138E0

Accessibility & contrast

On white

10.86
#5D1589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5D1589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1589
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1589#FFFFFF#000000##FFFFFF
##5D15891.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#563551
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1589;
/* rgb */ color: rgb(93, 21, 137);
/* oklch */ color: oklch(38.3% 0.176 307.7);
Tailwind
colors: {
  custom: {
    50: '#905dac',
    500: '#5d1589',
    950: '#000000',
  },
}
SCSS
$custom: #5d1589;
$custom-light: #905dac;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1589",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 277.241,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38316,
    "c": 0.176,
    "h": 307.7
  },
  "luminance": 0.0467
}

Semantic roles & 50–950 ramp

primary
#5D1589
secondary
#6DBD3D
accent
#F0387E
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1589

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

Preview Lab → · Contrast checker → · Palette generator →

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