#5D1B94#5D1B94

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

Color values

HEX#5D1B94
RGBrgb(93, 27, 148)
HSLhsl(273, 69%, 34%)
HSVhsv(273, 82%, 58%)
CMYKcmyk(37.2%, 81.8%, 0%, 42%)
CIE-LABlab(27.43, 50.78, -53.03)
CIE-LCHlch(27.43, 73.42, 313.76°)
OKLaboklab(39.77% 0.0999 -0.1513)
OKLCHoklch(39.77% 0.181 303.4)
XYZxyz(10.2502, 5.2491, 28.4844)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1B94 #52941B
analogous
#201B94 #5D1B94 #941B8F
triadic
#5D1B94 #945D1B #1B945D
tetradic
#5D1B94 #94201B #52941B #1B8F94
square
#5D1B94 #94201B #52941B #1B8F94
split-complementary
#5D1B94 #8F941B #1B9420
monochromatic
#1C082C #3C1260 #5D1B94 #7E24C8 #9B4BDE

Accessibility & contrast

On white

10.24
#5D1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5D1B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1B94
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1B94#FFFFFF#000000##FFFFFF
##5D1B941.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#004192
Tritanopia (blue-blind)
#523C58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d1b94;
/* rgb */ color: rgb(93, 27, 148);
/* oklch */ color: oklch(39.8% 0.181 303.4);
Tailwind
colors: {
  custom: {
    50: '#9160b4',
    500: '#5d1b94',
    950: '#000000',
  },
}
SCSS
$custom: #5d1b94;
$custom-light: #9160b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1b94",
  "rgb": {
    "r": 93,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 272.727,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39765,
    "c": 0.18134,
    "h": 303.4
  },
  "luminance": 0.05249
}

Semantic roles & 50–950 ramp

primary
#5D1B94
secondary
#80C04B
accent
#EC3C8C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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