#5D1B93#5D1B93

#5D1B93 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.180 H 303.8°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#5D1B93
RGBrgb(93, 27, 147)
HSLhsl(273, 69%, 34%)
HSVhsv(273, 82%, 58%)
CMYKcmyk(36.7%, 81.6%, 0%, 42.4%)
CIE-LABlab(27.35, 50.55, -52.55)
CIE-LCHlch(27.35, 72.92, 313.89°)
OKLaboklab(39.68% 0.1002 -0.1499)
OKLCHoklch(39.68% 0.18 303.8)
XYZxyz(10.1714, 5.2176, 28.0694)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1B93 #51931B
analogous
#211B93 #5D1B93 #931B8D
triadic
#5D1B93 #935D1B #1B935D
tetradic
#5D1B93 #93211B #51931B #1B8D93
square
#5D1B93 #93211B #51931B #1B8D93
split-complementary
#5D1B93 #8D931B #1B9321
monochromatic
#1C082C #3C125F #5D1B93 #7E24C7 #9C4BDE

Accessibility & contrast

On white

10.28
#5D1B93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1B93
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1B93#FFFFFF#000000##FFFFFF
##5D1B931.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F96
Deuteranopia (green-blind)
#004091
Tritanopia (blue-blind)
#523C58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d1b93;
/* rgb */ color: rgb(93, 27, 147);
/* oklch */ color: oklch(39.7% 0.180 303.8);
Tailwind
colors: {
  custom: {
    50: '#9160b4',
    500: '#5d1b93',
    950: '#000000',
  },
}
SCSS
$custom: #5d1b93;
$custom-light: #9160b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1b93",
  "rgb": {
    "r": 93,
    "g": 27,
    "b": 147
  },
  "hsl": {
    "h": 273,
    "s": 68.966,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39678,
    "c": 0.18034,
    "h": 303.8
  },
  "luminance": 0.05218
}

Semantic roles & 50–950 ramp

primary
#5D1B93
secondary
#7FC04A
accent
#EC3C8B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1B93

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

Preview Lab → · Contrast checker → · Palette generator →

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