#5D1E9A#5D1E9A

#5D1E9A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.185 H 301.3°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#5D1E9A
RGBrgb(93, 30, 154)
HSLhsl(270, 67%, 36%)
HSVhsv(270, 81%, 60%)
CMYKcmyk(39.6%, 80.5%, 0%, 39.6%)
CIE-LABlab(28.35, 51.09, -55.21)
CIE-LCHlch(28.35, 75.22, 312.78°)
OKLaboklab(40.57% 0.0958 -0.1578)
OKLCHoklch(40.57% 0.185 301.3)
XYZxyz(10.8098, 5.5887, 31.0748)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1E9A #5B9A1E
analogous
#1F1E9A #5D1E9A #9A1E99
triadic
#5D1E9A #9A5D1E #1E9A5D
tetradic
#5D1E9A #9A1F1E #5B9A1E #1E999A
square
#5D1E9A #9A1F1E #5B9A1E #1E999A
split-complementary
#5D1E9A #999A1E #1E9A1F
monochromatic
#1F0A34 #3E1467 #5D1E9A #7C28CD #9A55DE

Accessibility & contrast

On white

9.92
#5D1E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5D1E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1E9A
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1E9A#FFFFFF#000000##FFFFFF
##5D1E9A1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.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: #5d1e9a;
/* rgb */ color: rgb(93, 30, 154);
/* oklch */ color: oklch(40.6% 0.185 301.3);
Tailwind
colors: {
  custom: {
    50: '#9162b9',
    500: '#5d1e9a',
    950: '#000000',
  },
}
SCSS
$custom: #5d1e9a;
$custom-light: #9162b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1e9a",
  "rgb": {
    "r": 93,
    "g": 30,
    "b": 154
  },
  "hsl": {
    "h": 270.484,
    "s": 67.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40566,
    "c": 0.18456,
    "h": 301.3
  },
  "luminance": 0.05589
}

Semantic roles & 50–950 ramp

primary
#5D1E9A
secondary
#89C153
accent
#EA3E93
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D1E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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