#5D1D9E#5D1D9E

#5D1D9E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.190 H 300.2°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#5D1D9E
RGBrgb(93, 29, 158)
HSLhsl(270, 69%, 37%)
HSVhsv(270, 82%, 62%)
CMYKcmyk(41.1%, 81.6%, 0%, 38%)
CIE-LABlab(28.58, 52.43, -57.28)
CIE-LCHlch(28.58, 77.66, 312.47°)
OKLaboklab(40.83% 0.0953 -0.1638)
OKLCHoklch(40.83% 0.19 300.2)
XYZxyz(11.1236, 5.6744, 32.8503)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1D9E #5E9E1D
analogous
#1D1E9E #5D1D9E #9E1D9E
triadic
#5D1D9E #9E5D1D #1D9E5D
tetradic
#5D1D9E #9E1D1E #5E9E1D #1D9E9E
square
#5D1D9E #9E1D1E #5E9E1D #1D9E9E
split-complementary
#5D1D9E #9E9E1D #1E9E1D
monochromatic
#200A37 #3F146A #5D1D9E #7B26D2 #9A56E0

Accessibility & contrast

On white

9.84
#5D1D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5D1D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1D9E
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1D9E#FFFFFF#000000##FFFFFF
##5D1D9E1.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#4E415E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d1d9e;
/* rgb */ color: rgb(93, 29, 158);
/* oklch */ color: oklch(40.8% 0.190 300.2);
Tailwind
colors: {
  custom: {
    50: '#9262bc',
    500: '#5d1d9e',
    950: '#000000',
  },
}
SCSS
$custom: #5d1d9e;
$custom-light: #9262bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1d9e",
  "rgb": {
    "r": 93,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 269.767,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40833,
    "c": 0.18955,
    "h": 300.2
  },
  "luminance": 0.05675
}

Semantic roles & 50–950 ramp

primary
#5D1D9E
secondary
#8CC354
accent
#EC3C95
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D1D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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