#5D1996#5D1996

#5D1996 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.8% C 0.185 H 303.0°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#5D1996
RGBrgb(93, 25, 150)
HSLhsl(273, 71%, 34%)
HSVhsv(273, 83%, 59%)
CMYKcmyk(38%, 83.3%, 0%, 41.2%)
CIE-LABlab(27.36, 51.97, -54.37)
CIE-LCHlch(27.36, 75.21, 313.71°)
OKLaboklab(39.77% 0.1008 -0.1552)
OKLCHoklch(39.77% 0.185 303)
XYZxyz(10.3655, 5.2244, 29.3106)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1996 #529619
analogous
#1E1996 #5D1996 #961991
triadic
#5D1996 #965D19 #19965D
tetradic
#5D1996 #961E19 #529619 #199196
square
#5D1996 #961E19 #529619 #199196
split-complementary
#5D1996 #919619 #19961E
monochromatic
#1C082D #3C1062 #5D1996 #7E22CA #9B49E1

Accessibility & contrast

On white

10.27
#5D1996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5D1996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1996
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1996#FFFFFF#000000##FFFFFF
##5D19961.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#513C59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d1996;
/* rgb */ color: rgb(93, 25, 150);
/* oklch */ color: oklch(39.8% 0.185 303.0);
Tailwind
colors: {
  custom: {
    50: '#9160b6',
    500: '#5d1996',
    950: '#000000',
  },
}
SCSS
$custom: #5d1996;
$custom-light: #9160b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1996",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 272.64,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39772,
    "c": 0.18511,
    "h": 303
  },
  "luminance": 0.05224
}

Semantic roles & 50–950 ramp

primary
#5D1996
secondary
#80C249
accent
#EE3A8C
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D1996

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

Preview Lab → · Contrast checker → · Palette generator →

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