#5D1D7B#5D1D7B

#5D1D7B is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.9% C 0.154 H 312.4°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#5D1D7B
RGBrgb(93, 29, 123)
HSLhsl(281, 62%, 30%)
HSVhsv(281, 76%, 48%)
CMYKcmyk(24.4%, 76.4%, 0%, 51.8%)
CIE-LABlab(25.67, 44.22, -40.27)
CIE-LCHlch(25.67, 59.81, 317.68°)
OKLaboklab(37.89% 0.104 -0.1138)
OKLCHoklch(37.89% 0.154 312.4)
XYZxyz(8.5281, 4.6362, 19.1807)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1D7B #3B7B1D
analogous
#2E1D7B #5D1D7B #7B1D6A
triadic
#5D1D7B #7B5D1D #1D7B5D
tetradic
#5D1D7B #7B2E1D #3B7B1D #1D6A7B
square
#5D1D7B #7B2E1D #3B7B1D #1D6A7B
split-complementary
#5D1D7B #6A7B1D #1D7B2E
monochromatic
#130619 #381149 #5D1D7B #8229AD #A440D2

Accessibility & contrast

On white

10.90
#5D1D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5D1D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1D7B
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1D7B#FFFFFF#000000##FFFFFF
##5D1D7B1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#113E79
Tritanopia (blue-blind)
#5A324A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1d7b;
/* rgb */ color: rgb(93, 29, 123);
/* oklch */ color: oklch(37.9% 0.154 312.4);
Tailwind
colors: {
  custom: {
    50: '#8f60a2',
    500: '#5d1d7b',
    950: '#000000',
  },
}
SCSS
$custom: #5d1d7b;
$custom-light: #8f60a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1d7b",
  "rgb": {
    "r": 93,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 280.851,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37894,
    "c": 0.15418,
    "h": 312.4
  },
  "luminance": 0.04636
}

Semantic roles & 50–950 ramp

primary
#5D1D7B
secondary
#67AF45
accent
#E54377
background
#F9F5FA
surface
#F1EAF3
border
#CBC6CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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