#5D1B9E#5D1B9E

#5D1B9E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.191 H 300.4°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#5D1B9E
RGBrgb(93, 27, 158)
HSLhsl(270, 71%, 36%)
HSVhsv(270, 83%, 62%)
CMYKcmyk(41.1%, 82.9%, 0%, 38%)
CIE-LABlab(28.33, 53.16, -57.69)
CIE-LCHlch(28.33, 78.45, 312.66°)
OKLaboklab(40.66% 0.0968 -0.165)
OKLCHoklch(40.66% 0.191 300.4)
XYZxyz(11.0761, 5.5795, 32.8345)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1B9E #5C9E1B
analogous
#1C1B9E #5D1B9E #9E1B9E
triadic
#5D1B9E #9E5D1B #1B9E5D
tetradic
#5D1B9E #9E1C1B #5C9E1B #1B9E9E
square
#5D1B9E #9E1C1B #5C9E1B #1B9E9E
split-complementary
#5D1B9E #9E9E1B #1B9E1C
monochromatic
#1F0935 #3E126A #5D1B9E #7C24D2 #9A52E1

Accessibility & contrast

On white

9.92
#5D1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5D1B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1B9E
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1B9E#FFFFFF#000000##FFFFFF
##5D1B9E1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#4E415E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d1b9e;
/* rgb */ color: rgb(93, 27, 158);
/* oklch */ color: oklch(40.7% 0.191 300.4);
Tailwind
colors: {
  custom: {
    50: '#9261bc',
    500: '#5d1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #5d1b9e;
$custom-light: #9261bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1b9e",
  "rgb": {
    "r": 93,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 270.229,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40659,
    "c": 0.1913,
    "h": 300.4
  },
  "luminance": 0.0558
}

Semantic roles & 50–950 ramp

primary
#5D1B9E
secondary
#8AC451
accent
#EE3A93
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5D1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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