#5D1D96#5D1D96

#5D1D96 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.181 H 302.6°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#5D1D96
RGBrgb(93, 29, 150)
HSLhsl(272, 68%, 35%)
HSVhsv(272, 81%, 59%)
CMYKcmyk(38%, 80.7%, 0%, 41.2%)
CIE-LABlab(27.87, 50.51, -53.55)
CIE-LCHlch(27.87, 73.61, 313.32°)
OKLaboklab(40.12% 0.0978 -0.1529)
OKLCHoklch(40.12% 0.181 302.6)
XYZxyz(10.4573, 5.4079, 29.3411)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1D96 #56961D
analogous
#211D96 #5D1D96 #961D92
triadic
#5D1D96 #965D1D #1D965D
tetradic
#5D1D96 #96211D #56961D #1D9296
square
#5D1D96 #96211D #56961D #1D9296
split-complementary
#5D1D96 #92961D #1D9621
monochromatic
#1D092F #3D1363 #5D1D96 #7D27C9 #9B50DD

Accessibility & contrast

On white

10.09
#5D1D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5D1D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1D96
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1D96#FFFFFF#000000##FFFFFF
##5D1D961.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#513E5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d1d96;
/* rgb */ color: rgb(93, 29, 150);
/* oklch */ color: oklch(40.1% 0.181 302.6);
Tailwind
colors: {
  custom: {
    50: '#9161b6',
    500: '#5d1d96',
    950: '#000000',
  },
}
SCSS
$custom: #5d1d96;
$custom-light: #9161b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1d96",
  "rgb": {
    "r": 93,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 271.736,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40121,
    "c": 0.18146,
    "h": 302.6
  },
  "luminance": 0.05408
}

Semantic roles & 50–950 ramp

primary
#5D1D96
secondary
#84C04F
accent
#EA3D8F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1D96

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

Preview Lab → · Contrast checker → · Palette generator →

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