#5D1C9D#5D1C9D

#5D1C9D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.189 H 300.6°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#5D1C9D
RGBrgb(93, 28, 157)
HSLhsl(270, 70%, 36%)
HSVhsv(270, 82%, 62%)
CMYKcmyk(40.8%, 82.2%, 0%, 38.4%)
CIE-LABlab(28.36, 52.56, -57.03)
CIE-LCHlch(28.36, 77.56, 312.67°)
OKLaboklab(40.65% 0.0964 -0.1631)
OKLCHoklch(40.65% 0.189 300.6)
XYZxyz(11.0137, 5.5919, 32.3908)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1C9D #5C9D1C
analogous
#1D1C9D #5D1C9D #9D1C9D
triadic
#5D1C9D #9D5D1C #1C9D5D
tetradic
#5D1C9D #9D1D1C #5C9D1C #1C9D9D
square
#5D1C9D #9D1D1C #5C9D1C #1C9D9D
split-complementary
#5D1C9D #9D9D1C #1C9D1D
monochromatic
#1F0935 #3E1369 #5D1C9D #7C25D1 #9A53E0

Accessibility & contrast

On white

9.91
#5D1C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1C9D
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1C9D#FFFFFF#000000##FFFFFF
##5D1C9D1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#4E405E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d1c9d;
/* rgb */ color: rgb(93, 28, 157);
/* oklch */ color: oklch(40.7% 0.189 300.6);
Tailwind
colors: {
  custom: {
    50: '#9261bb',
    500: '#5d1c9d',
    950: '#000000',
  },
}
SCSS
$custom: #5d1c9d;
$custom-light: #9261bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1c9d",
  "rgb": {
    "r": 93,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 270.233,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40654,
    "c": 0.18944,
    "h": 300.6
  },
  "luminance": 0.05592
}

Semantic roles & 50–950 ramp

primary
#5D1C9D
secondary
#8AC351
accent
#ED3B93
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5D1C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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