#5D1D9A#5D1D9A

#5D1D9A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.5% C 0.185 H 301.4°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#5D1D9A
RGBrgb(93, 29, 154)
HSLhsl(271, 68%, 36%)
HSVhsv(271, 81%, 60%)
CMYKcmyk(39.6%, 81.2%, 0%, 39.6%)
CIE-LABlab(28.22, 51.47, -55.43)
CIE-LCHlch(28.22, 75.64, 312.88°)
OKLaboklab(40.47% 0.0966 -0.1584)
OKLCHoklch(40.47% 0.186 301.4)
XYZxyz(10.7849, 5.5389, 31.0665)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1D9A #5A9A1D
analogous
#1E1D9A #5D1D9A #9A1D98
triadic
#5D1D9A #9A5D1D #1D9A5D
tetradic
#5D1D9A #9A1E1D #5A9A1D #1D989A
square
#5D1D9A #9A1E1D #5A9A1D #1D989A
split-complementary
#5D1D9A #989A1D #1D9A1E
monochromatic
#1F0A33 #3E1366 #5D1D9A #7C27CE #9A53DF

Accessibility & contrast

On white

9.96
#5D1D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5D1D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1D9A
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1D9A#FFFFFF#000000##FFFFFF
##5D1D9A1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#4F405C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d1d9a;
/* rgb */ color: rgb(93, 29, 154);
/* oklch */ color: oklch(40.5% 0.185 301.4);
Tailwind
colors: {
  custom: {
    50: '#9162b9',
    500: '#5d1d9a',
    950: '#000000',
  },
}
SCSS
$custom: #5d1d9a;
$custom-light: #9162b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1d9a",
  "rgb": {
    "r": 93,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 270.72,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40474,
    "c": 0.1855,
    "h": 301.4
  },
  "luminance": 0.05539
}

Semantic roles & 50–950 ramp

primary
#5D1D9A
secondary
#88C251
accent
#EB3D92
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5D1D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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