#5D1D97#5D1D97

#5D1D97 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.182 H 302.3°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#5D1D97
RGBrgb(93, 29, 151)
HSLhsl(271, 68%, 35%)
HSVhsv(271, 81%, 59%)
CMYKcmyk(38.4%, 80.8%, 0%, 40.8%)
CIE-LABlab(27.95, 50.75, -54.02)
CIE-LCHlch(27.95, 74.12, 313.21°)
OKLaboklab(40.21% 0.0975 -0.1542)
OKLCHoklch(40.21% 0.182 302.3)
XYZxyz(10.5381, 5.4402, 29.7670)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1D97 #57971D
analogous
#201D97 #5D1D97 #971D94
triadic
#5D1D97 #975D1D #1D975D
tetradic
#5D1D97 #97201D #57971D #1D9497
square
#5D1D97 #97201D #57971D #1D9497
split-complementary
#5D1D97 #94971D #1D9720
monochromatic
#1E0930 #3D1364 #5D1D97 #7D27CA #9B51DE

Accessibility & contrast

On white

10.06
#5D1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5D1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1D97
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1D97#FFFFFF#000000##FFFFFF
##5D1D971.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#503E5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d1d97;
/* rgb */ color: rgb(93, 29, 151);
/* oklch */ color: oklch(40.2% 0.182 302.3);
Tailwind
colors: {
  custom: {
    50: '#9162b7',
    500: '#5d1d97',
    950: '#000000',
  },
}
SCSS
$custom: #5d1d97;
$custom-light: #9162b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1d97",
  "rgb": {
    "r": 93,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 271.475,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40209,
    "c": 0.18246,
    "h": 302.3
  },
  "luminance": 0.0544
}

Semantic roles & 50–950 ramp

primary
#5D1D97
secondary
#85C04F
accent
#EB3D90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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