#5D1B7B#5D1B7B

#5D1B7B is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.7% C 0.157 H 312.6°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#5D1B7B
RGBrgb(93, 27, 123)
HSLhsl(281, 64%, 29%)
HSVhsv(281, 78%, 48%)
CMYKcmyk(24.4%, 78%, 0%, 51.8%)
CIE-LABlab(25.39, 45.04, -40.73)
CIE-LCHlch(25.39, 60.72, 317.88°)
OKLaboklab(37.69% 0.106 -0.1152)
OKLCHoklch(37.69% 0.157 312.6)
XYZxyz(8.4806, 4.5413, 19.1649)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1B7B #397B1B
analogous
#2D1B7B #5D1B7B #7B1B69
triadic
#5D1B7B #7B5D1B #1B7B5D
tetradic
#5D1B7B #7B2D1B #397B1B #1B697B
square
#5D1B7B #7B2D1B #397B1B #1B697B
split-complementary
#5D1B7B #697B1B #1B7B2D
monochromatic
#130619 #371049 #5D1B7B #8326AD #A53CD4

Accessibility & contrast

On white

11.01
#5D1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5D1B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1B7B
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1B7B#FFFFFF#000000##FFFFFF
##5D1B7B1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#0E3E79
Tritanopia (blue-blind)
#5A314A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d1b7b;
/* rgb */ color: rgb(93, 27, 123);
/* oklch */ color: oklch(37.7% 0.157 312.6);
Tailwind
colors: {
  custom: {
    50: '#8f5fa2',
    500: '#5d1b7b',
    950: '#000000',
  },
}
SCSS
$custom: #5d1b7b;
$custom-light: #8f5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1b7b",
  "rgb": {
    "r": 93,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 281.25,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37691,
    "c": 0.15652,
    "h": 312.6
  },
  "luminance": 0.04541
}

Semantic roles & 50–950 ramp

primary
#5D1B7B
secondary
#65AF43
accent
#E74175
background
#F9F5FA
surface
#F1EAF3
border
#CBC6CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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