#5D1A93#5D1A93

#5D1A93 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.181 H 303.9°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#5D1A93
RGBrgb(93, 26, 147)
HSLhsl(273, 70%, 34%)
HSVhsv(273, 82%, 58%)
CMYKcmyk(36.7%, 82.3%, 0%, 42.4%)
CIE-LABlab(27.22, 50.91, -52.76)
CIE-LCHlch(27.22, 73.32, 313.98°)
OKLaboklab(39.59% 0.101 -0.1505)
OKLCHoklch(39.59% 0.181 303.9)
XYZxyz(10.1488, 5.1725, 28.0618)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1A93 #50931A
analogous
#211A93 #5D1A93 #931A8D
triadic
#5D1A93 #935D1A #1A935D
tetradic
#5D1A93 #93211A #50931A #1A8D93
square
#5D1A93 #93211A #50931A #1A8D93
split-complementary
#5D1A93 #8D931A #1A9321
monochromatic
#1B082B #3C115F #5D1A93 #7E23C7 #9C49DF

Accessibility & contrast

On white

10.32
#5D1A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5D1A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1A93
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1A93#FFFFFF#000000##FFFFFF
##5D1A931.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F96
Deuteranopia (green-blind)
#004091
Tritanopia (blue-blind)
#523B57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d1a93;
/* rgb */ color: rgb(93, 26, 147);
/* oklch */ color: oklch(39.6% 0.181 303.9);
Tailwind
colors: {
  custom: {
    50: '#9160b4',
    500: '#5d1a93',
    950: '#000000',
  },
}
SCSS
$custom: #5d1a93;
$custom-light: #9160b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1a93",
  "rgb": {
    "r": 93,
    "g": 26,
    "b": 147
  },
  "hsl": {
    "h": 273.223,
    "s": 69.942,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39591,
    "c": 0.18127,
    "h": 303.9
  },
  "luminance": 0.05173
}

Semantic roles & 50–950 ramp

primary
#5D1A93
secondary
#7EC048
accent
#ED3B8A
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D1A93

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

Preview Lab → · Contrast checker → · Palette generator →

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