#5D1D7D#5D1D7D

#5D1D7D is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.0% C 0.156 H 311.6°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#5D1D7D
RGBrgb(93, 29, 125)
HSLhsl(280, 62%, 30%)
HSVhsv(280, 77%, 49%)
CMYKcmyk(25.6%, 76.8%, 0%, 51%)
CIE-LABlab(25.82, 44.67, -41.29)
CIE-LCHlch(25.82, 60.83, 317.25°)
OKLaboklab(38.05% 0.1037 -0.1168)
OKLCHoklch(38.05% 0.156 311.6)
XYZxyz(8.6545, 4.6868, 19.8468)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1D7D #3D7D1D
analogous
#2D1D7D #5D1D7D #7D1D6D
triadic
#5D1D7D #7D5D1D #1D7D5D
tetradic
#5D1D7D #7D2D1D #3D7D1D #1D6D7D
square
#5D1D7D #7D2D1D #3D7D1D #1D6D7D
split-complementary
#5D1D7D #6D7D1D #1D7D2D
monochromatic
#13061A #38114B #5D1D7D #8229AF #A241D3

Accessibility & contrast

On white

10.84
#5D1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5D1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1D7D
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1D7D#FFFFFF#000000##FFFFFF
##5D1D7D1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#0D3E7B
Tritanopia (blue-blind)
#59334C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1d7d;
/* rgb */ color: rgb(93, 29, 125);
/* oklch */ color: oklch(38.0% 0.156 311.6);
Tailwind
colors: {
  custom: {
    50: '#8f60a3',
    500: '#5d1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #5d1d7d;
$custom-light: #8f60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1d7d",
  "rgb": {
    "r": 93,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 280,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38048,
    "c": 0.15619,
    "h": 311.6
  },
  "luminance": 0.04687
}

Semantic roles & 50–950 ramp

primary
#5D1D7D
secondary
#69B145
accent
#E54279
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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