#5D1D7C#5D1D7C

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

Color values

HEX#5D1D7C
RGBrgb(93, 29, 124)
HSLhsl(280, 62%, 30%)
HSVhsv(280, 77%, 49%)
CMYKcmyk(25%, 76.6%, 0%, 51.4%)
CIE-LABlab(25.75, 44.44, -40.78)
CIE-LCHlch(25.75, 60.32, 317.46°)
OKLaboklab(37.97% 0.1038 -0.1153)
OKLCHoklch(37.97% 0.155 312)
XYZxyz(8.5910, 4.6614, 19.5121)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1D7C #3C7C1D
analogous
#2D1D7C #5D1D7C #7C1D6C
triadic
#5D1D7C #7C5D1D #1D7C5D
tetradic
#5D1D7C #7C2D1D #3C7C1D #1D6C7C
square
#5D1D7C #7C2D1D #3C7C1D #1D6C7C
split-complementary
#5D1D7C #6C7C1D #1D7C2D
monochromatic
#130619 #38114A #5D1D7C #8229AE #A341D3

Accessibility & contrast

On white

10.87
#5D1D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1D7C
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1D7C#FFFFFF#000000##FFFFFF
##5D1D7C1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#0F3E7A
Tritanopia (blue-blind)
#59334B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1d7c;
/* rgb */ color: rgb(93, 29, 124);
/* oklch */ color: oklch(38.0% 0.155 312.0);
Tailwind
colors: {
  custom: {
    50: '#8f60a3',
    500: '#5d1d7c',
    950: '#000000',
  },
}
SCSS
$custom: #5d1d7c;
$custom-light: #8f60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1d7c",
  "rgb": {
    "r": 93,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 280.421,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.37971,
    "c": 0.15518,
    "h": 312
  },
  "luminance": 0.04661
}

Semantic roles & 50–950 ramp

primary
#5D1D7C
secondary
#68B045
accent
#E54378
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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